From e73b56aa4bcb7e53144ef96ee978f2a19b32669d Mon Sep 17 00:00:00 2001 From: Jimmi Holst Christensen Date: Tue, 22 Oct 2024 17:46:47 +0200 Subject: refactor: Always access using full namespace This is my new preferred style of programming Zig :) --- clap/args.zig | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'clap/args.zig') diff --git a/clap/args.zig b/clap/args.zig index d0aaee3..6a424e3 100644 --- a/clap/args.zig +++ b/clap/args.zig @@ -1,12 +1,3 @@ -const builtin = @import("builtin"); -const std = @import("std"); - -const debug = std.debug; -const heap = std.heap; -const mem = std.mem; -const process = std.process; -const testing = std.testing; - /// An example of what methods should be implemented on an arg iterator. pub const ExampleArgIterator = struct { pub fn next(iter: *ExampleArgIterator) ?[]const u8 { @@ -35,7 +26,9 @@ test "SliceIterator" { var iter = SliceIterator{ .args = &args }; for (args) |a| - try testing.expectEqualStrings(a, iter.next().?); + try std.testing.expectEqualStrings(a, iter.next().?); - try testing.expectEqual(@as(?[]const u8, null), iter.next()); + try std.testing.expectEqual(@as(?[]const u8, null), iter.next()); } + +const std = @import("std"); -- cgit v1.2.3