Skip to content

Commit

Permalink
Remove std.conv import from skipData (#9040)
Browse files Browse the repository at this point in the history
  • Loading branch information
0-v-0 authored Aug 7, 2024
1 parent ebd24da commit 5920001
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions std/format/internal/read.d
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ package(std.format):
void skipData(Range, Char)(ref Range input, scope const ref FormatSpec!Char spec)
{
import std.ascii : isDigit;
import std.conv : text;
import std.range.primitives : empty, front, popFront;

switch (spec.spec)
Expand All @@ -38,8 +37,7 @@ void skipData(Range, Char)(ref Range input, scope const ref FormatSpec!Char spec
while (!input.empty && isDigit(input.front)) input.popFront();
break;
default:
assert(false,
text("Format specifier not understood: %", spec.spec));
assert(0, "Format specifier not understood: %" ~ spec.spec);
}
}

Expand Down

0 comments on commit 5920001

Please sign in to comment.