Skip to content

Commit 5abf1ee

Browse files
committed
avoid unnecessary copy of format argument
1 parent 9a3cb89 commit 5abf1ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/bc/string/format.d

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ size_t nogcFormatTo(string fmt = "%s", S, ARGS...)(ref S sink, auto ref ARGS arg
129129
enum f = tok.type;
130130

131131
alias Typ = Unqual!(ARGS[j]);
132-
auto val = args[j];
132+
alias val = args[j];
133133

134134
static if (isStdNullable!Typ) {
135135
if (val.isNull) write("null");

0 commit comments

Comments
 (0)