std.Io.Timestamp: when creating a Clock.Timestamp actually set .raw instead of the non-existant .nanoseconds

This commit is contained in:
Aidan Welch 2025-12-02 10:59:53 +01:00 committed by aidansw
parent be9649f4ea
commit 7ba6a5698f

View file

@ -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 {