Skip to content

Commit 194d96f

Browse files
committed
Remove self imports from std.format
1 parent fee0ee1 commit 194d96f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

std/format.d

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,6 @@ if (isSomeString!(typeof(fmt)))
450450
@safe pure unittest
451451
{
452452
import std.array : appender;
453-
import std.format : formattedWrite;
454453

455454
auto writer = appender!string();
456455
writer.formattedWrite!"%s is the ultimate %s."(42, "answer");
@@ -1760,7 +1759,6 @@ void formatValue(Writer, T, Char)(auto ref Writer w, auto ref T val, const ref F
17601759
@safe pure unittest
17611760
{
17621761
import std.array : appender;
1763-
import std.format;
17641762

17651763
auto writer1 = appender!string();
17661764
writer1.formattedWrite("%08b", 42);
@@ -5804,7 +5802,6 @@ immutable(Char)[] format(Char, Args...)(in Char[] fmt, Args args)
58045802
if (isSomeChar!Char)
58055803
{
58065804
import std.array : appender;
5807-
import std.format : formattedWrite, FormatException;
58085805
auto w = appender!(immutable(Char)[]);
58095806
auto n = formattedWrite(w, fmt, args);
58105807
version (all)
@@ -5823,7 +5820,6 @@ if (isSomeChar!Char)
58235820
{
58245821
import core.exception;
58255822
import std.exception;
5826-
import std.format;
58275823
assertCTFEable!(
58285824
{
58295825
// assert(format(null) == "");
@@ -5880,7 +5876,6 @@ if (isSomeString!(typeof(fmt)))
58805876
char[] sformat(Char, Args...)(char[] buf, in Char[] fmt, Args args)
58815877
{
58825878
import core.exception : RangeError;
5883-
import std.format : formattedWrite, FormatException;
58845879
import std.utf : encode;
58855880

58865881
size_t i;

0 commit comments

Comments
 (0)