| ... | ... | @@ -1,11 +1,12 @@ |
| 1 | 1 | const std = @import("std.zig"); |
| 2 | const builtin = @import("builtin"); |
| 3 | |
| 2 | 4 | const io = std.io; |
| 3 | 5 | const math = std.math; |
| 4 | 6 | const assert = std.debug.assert; |
| 5 | 7 | const mem = std.mem; |
| 6 | 8 | const unicode = std.unicode; |
| 7 | 9 | const meta = std.meta; |
| 8 | | const builtin = @import("builtin"); |
| 9 | 10 | const errol = @import("fmt/errol.zig"); |
| 10 | 11 | const lossyCast = std.math.lossyCast; |
| 11 | 12 | const expectFmt = std.testing.expectFmt; |
| ... | ... | @@ -190,7 +191,7 @@ pub fn format( |
| 190 | 191 | .precision = precision, |
| 191 | 192 | }, |
| 192 | 193 | writer, |
| 193 | | default_max_depth, |
| 194 | std.options.fmt_max_depth, |
| 194 | 195 | ); |
| 195 | 196 | } |
| 196 | 197 | |
| ... | ... | @@ -2140,15 +2141,15 @@ test "buffer" { |
| 2140 | 2141 | { |
| 2141 | 2142 | var buf1: [32]u8 = undefined; |
| 2142 | 2143 | var fbs = std.io.fixedBufferStream(&buf1); |
| 2143 | | try formatType(1234, "", FormatOptions{}, fbs.writer(), default_max_depth); |
| 2144 | try formatType(1234, "", FormatOptions{}, fbs.writer(), std.options.fmt_max_depth); |
| 2144 | 2145 | try std.testing.expect(mem.eql(u8, fbs.getWritten(), "1234")); |
| 2145 | 2146 | |
| 2146 | 2147 | fbs.reset(); |
| 2147 | | try formatType('a', "c", FormatOptions{}, fbs.writer(), default_max_depth); |
| 2148 | try formatType('a', "c", FormatOptions{}, fbs.writer(), std.options.fmt_max_depth); |
| 2148 | 2149 | try std.testing.expect(mem.eql(u8, fbs.getWritten(), "a")); |
| 2149 | 2150 | |
| 2150 | 2151 | fbs.reset(); |
| 2151 | | try formatType(0b1100, "b", FormatOptions{}, fbs.writer(), default_max_depth); |
| 2152 | try formatType(0b1100, "b", FormatOptions{}, fbs.writer(), std.options.fmt_max_depth); |
| 2152 | 2153 | try std.testing.expect(mem.eql(u8, fbs.getWritten(), "1100")); |
| 2153 | 2154 | } |
| 2154 | 2155 | } |