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
1 files changed, 0 insertions(+), 2 deletions(-)
lib
std
lib/std/fmt.zig-2
| ... | ... | @@ -88,8 +88,6 @@ pub fn format( |
| 88 | 88 | if (args.len > ArgSetType.bit_count) { |
| 89 | 89 | @compileError("32 arguments max are supported per format call"); |
| 90 | 90 | } |
| 91 | | if (args.len == 0) |
| 92 | | return writer.writeAll(fmt); |
| 93 | 91 | |
| 94 | 92 | const State = enum { |
| 95 | 93 | Start, |