From 7ba6a5698f03fffc94b6781181250329caaefe84 Mon Sep 17 00:00:00 2001 From: Aidan Welch Date: Tue, 2 Dec 2025 10:59:53 +0100 Subject: [PATCH] std.Io.Timestamp: when creating a Clock.Timestamp actually set .raw instead of the non-existant .nanoseconds --- lib/std/Io.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/Io.zig b/lib/std/Io.zig index eb854e3eca..ffd7837baf 100644 --- a/lib/std/Io.zig +++ b/lib/std/Io.zig @@ -890,7 +890,7 @@ pub const Timestamp = struct { } pub fn withClock(t: Timestamp, clock: Clock) Clock.Timestamp { - return .{ .nanoseconds = t.nanoseconds, .clock = clock }; + return .{ .raw = t, .clock = clock }; } pub fn fromNanoseconds(x: i96) Timestamp {