mirror of
https://github.com/ziglang/zig.git
synced 2026-01-03 03:53:20 +00:00
Revert "std.fmt.format: small optimization to avoid runtime bloat"
This reverts commit 11d38a7e520f485206b7b010f64127d864194e4c. The benefits of this commit are not enough to justify the compromise that it made. closes #5977
This commit is contained in:
parent
c4b9f5e52f
commit
a2bb246db4
@ -88,8 +88,6 @@ pub fn format(
|
||||
if (args.len > ArgSetType.bit_count) {
|
||||
@compileError("32 arguments max are supported per format call");
|
||||
}
|
||||
if (args.len == 0)
|
||||
return writer.writeAll(fmt);
|
||||
|
||||
const State = enum {
|
||||
Start,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user