From 901cfaea48caf844dd374d3f4e0a388cb9665b5a Mon Sep 17 00:00:00 2001 From: Vivianne Langdon Date: Mon, 17 Jul 2023 03:17:22 -0700 Subject: [PATCH] Formatting --- src/main.zig | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main.zig b/src/main.zig index 08b23bb..82cf906 100644 --- a/src/main.zig +++ b/src/main.zig @@ -66,7 +66,6 @@ const SyrupSerializer = struct { test "serialize bool" { var arr = std.ArrayList(u8).init(std.testing.allocator); defer arr.deinit(); - var s = (SyrupSerializer{ .writer = arr.writer() }).serializer(); try getty.serialize(null, true, s); @@ -79,7 +78,6 @@ test "serialize bool" { test "serialize ints" { var arr = std.ArrayList(u8).init(std.testing.allocator); defer arr.deinit(); - var s = (SyrupSerializer{ .writer = arr.writer() }).serializer(); try getty.serialize(null, 42, s); @@ -92,7 +90,6 @@ test "serialize ints" { test "serialize floats" { var arr = std.ArrayList(u8).init(std.testing.allocator); defer arr.deinit(); - var s = (SyrupSerializer{ .writer = arr.writer() }).serializer(); try getty.serialize(null, @as(f64, 42.42), s); @@ -103,7 +100,6 @@ test "serialize floats" { test "serialize strs" { var arr = std.ArrayList(u8).init(std.testing.allocator); defer arr.deinit(); - var s = (SyrupSerializer{ .writer = arr.writer() }).serializer(); try getty.serialize(null, "hello", s); @@ -121,7 +117,6 @@ test "serialize enum, aka symbol" { var arr = std.ArrayList(u8).init(std.testing.allocator); defer arr.deinit(); - var s = (SyrupSerializer{ .writer = arr.writer() }).serializer(); try getty.serialize(null, Testing.cool, s); @@ -138,7 +133,6 @@ test "serialize mixed" { var arr = std.ArrayList(u8).init(std.testing.allocator); defer arr.deinit(); - var s = (SyrupSerializer{ .writer = arr.writer() }).serializer(); try getty.serialize(null, 42, s);