diff options
| author | emekoi <emekankurumeh@outlook.com> | 2019-05-19 15:26:43 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-05-19 16:33:31 -0400 |
| commit | 1c73c08298fc3a19886038d935e45cf74ba152fb (patch) | |
| tree | 0583f8c9b0118e3e9f3c0268d6e6ea14063cd363 /std/io.zig | |
| parent | 6672ee9eb39a1cd9a3d6874ac1fb6de347ee2d33 (diff) | |
| download | zig-1c73c08298fc3a19886038d935e45cf74ba152fb.tar.gz zig-1c73c08298fc3a19886038d935e45cf74ba152fb.zip | |
ran zig fmt on stdlib
Diffstat (limited to 'std/io.zig')
| -rw-r--r-- | std/io.zig | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/std/io.zig b/std/io.zig index e47b2188c8..5e1aaf5da3 100644 --- a/std/io.zig +++ b/std/io.zig @@ -1116,10 +1116,12 @@ pub fn Deserializer(comptime endian: builtin.Endian, comptime packing: Packing, pub const Stream = InStream(Error); pub fn init(in_stream: *Stream) Self { - return Self{ .in_stream = switch (packing) { - .Bit => BitInStream(endian, Stream.Error).init(in_stream), - .Byte => in_stream, - } }; + return Self{ + .in_stream = switch (packing) { + .Bit => BitInStream(endian, Stream.Error).init(in_stream), + .Byte => in_stream, + }, + }; } pub fn alignToByte(self: *Self) void { @@ -1325,10 +1327,12 @@ pub fn Serializer(comptime endian: builtin.Endian, comptime packing: Packing, co pub const Stream = OutStream(Error); pub fn init(out_stream: *Stream) Self { - return Self{ .out_stream = switch (packing) { - .Bit => BitOutStream(endian, Stream.Error).init(out_stream), - .Byte => out_stream, - } }; + return Self{ + .out_stream = switch (packing) { + .Bit => BitOutStream(endian, Stream.Error).init(out_stream), + .Byte => out_stream, + }, + }; } /// Flushes any unwritten bits to the stream |
