From fbf2e19cdc753ba02fe97c4018c73cd7f694cde2 Mon Sep 17 00:00:00 2001 From: Techarix <19954306+Techatrix@users.noreply.github.com> Date: Tue, 4 Jul 2023 19:26:50 +0200 Subject: [PATCH] explicitly specify error set of `std.json.stringify` --- lib/std/json/stringify.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/json/stringify.zig b/lib/std/json/stringify.zig index c8084a7b61f0..17ab3a1eb548 100644 --- a/lib/std/json/stringify.zig +++ b/lib/std/json/stringify.zig @@ -140,7 +140,7 @@ pub fn stringify( value: anytype, options: StringifyOptions, out_stream: anytype, -) !void { +) @TypeOf(out_stream).Error!void { const T = @TypeOf(value); switch (@typeInfo(T)) { .Float, .ComptimeFloat => {