diff options
| author | 2018-11-14 14:55:05 +0100 | |
|---|---|---|
| committer | 2018-11-14 14:55:05 +0100 | |
| commit | 547a9f23f7960de0601b3f325768d58dae3ef5ec (patch) | |
| tree | 097add1902bdfa95f96d1097bbc2898ab7409fd8 /src/streaming.zig | |
| parent | Added pub flag/option/positional init funcs to Param (diff) | |
| download | zig-clap-547a9f23f7960de0601b3f325768d58dae3ef5ec.tar.gz zig-clap-547a9f23f7960de0601b3f325768d58dae3ef5ec.tar.xz zig-clap-547a9f23f7960de0601b3f325768d58dae3ef5ec.zip | |
Zig fmt
Diffstat (limited to 'src/streaming.zig')
| -rw-r--r-- | src/streaming.zig | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/streaming.zig b/src/streaming.zig index 99eaecb..f33fd96 100644 --- a/src/streaming.zig +++ b/src/streaming.zig | |||
| @@ -30,7 +30,6 @@ pub fn Arg(comptime Id: type) type { | |||
| 30 | /// ::StreamingClap.next to parse all the arguments of your program. | 30 | /// ::StreamingClap.next to parse all the arguments of your program. |
| 31 | pub fn StreamingClap(comptime Id: type, comptime ArgError: type) type { | 31 | pub fn StreamingClap(comptime Id: type, comptime ArgError: type) type { |
| 32 | return struct { | 32 | return struct { |
| 33 | |||
| 34 | const State = union(enum) { | 33 | const State = union(enum) { |
| 35 | Normal, | 34 | Normal, |
| 36 | Chaining: Chaining, | 35 | Chaining: Chaining, |
| @@ -189,7 +188,6 @@ pub fn StreamingClap(comptime Id: type, comptime ArgError: type) type { | |||
| 189 | }; | 188 | }; |
| 190 | } | 189 | } |
| 191 | 190 | ||
| 192 | |||
| 193 | fn testNoErr(params: []const clap.Param(u8), args_strings: []const []const u8, results: []const Arg(u8)) void { | 191 | fn testNoErr(params: []const clap.Param(u8), args_strings: []const []const u8, results: []const Arg(u8)) void { |
| 194 | var arg_iter = args.SliceIterator.init(args_strings); | 192 | var arg_iter = args.SliceIterator.init(args_strings); |
| 195 | var c = StreamingClap(u8, args.SliceIterator.Error).init(params, &arg_iter.iter); | 193 | var c = StreamingClap(u8, args.SliceIterator.Error).init(params, &arg_iter.iter); |