From 0ff4de3d386a04f06d12b0b112fb549b4d970020 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 1 Aug 2024 09:42:08 -0700 Subject: [PATCH] meant to make this public --- src/timer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/timer.rs b/src/timer.rs index 1255d48..93d33d4 100644 --- a/src/timer.rs +++ b/src/timer.rs @@ -27,7 +27,7 @@ pub struct Realtime{ offset:Time, } impl Realtime{ - const fn new(offset:Time)->Self{ + pub const fn new(offset:Time)->Self{ Self{offset} } } @@ -38,7 +38,7 @@ pub struct Scaled{ offset:Time, } impl Scaled{ - const fn new(scale:Ratio64,offset:Time)->Self{ + pub const fn new(scale:Ratio64,offset:Time)->Self{ Self{scale,offset} } const fn with_scale(scale:Ratio64)->Self{