From 8679b7df69ec5be9656f48f23c115be666f85cb1 Mon Sep 17 00:00:00 2001 From: Mathis Beer Date: Tue, 14 May 2024 13:38:15 +0200 Subject: [PATCH] Fix const(char)[] typing on 2.108. --- src/util/log.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/log.d b/src/util/log.d index fff8fe1..9bd0808 100644 --- a/src/util/log.d +++ b/src/util/log.d @@ -185,11 +185,11 @@ struct Log // Helper to allow using named references in format strings, ie. treat %{name} equivalent to %s. // Avoid std.regex because it's used at CTFE. -private string simplifyNamedReferences(string fmt) +private const(char)[] simplifyNamedReferences(const(char)[] fmt) { import std.exception : enforce; - string replacement = fmt; + const(char)[] replacement = fmt; while (replacement.canFind("%{")) {