From 1a00e6f5f997165897371e1347f75a5fb4f6c82a Mon Sep 17 00:00:00 2001 From: cbax Date: Wed, 25 Sep 2024 20:12:17 +0000 Subject: [PATCH] added generic bounds --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 32a888c..1da688d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -63,7 +63,7 @@ impl From for Icechip { } } -impl Icechip { +impl Icechip { pub fn new(version: Version, epoch: Option) -> Icechip { todo!(); } @@ -73,7 +73,7 @@ impl Icechip { self.epoch = Some(epoch); } - pub fn tick(&self) -> Icechip { + pub fn tick(&self) -> Icechip { /* - if current timestamp in relation to self does not equal self, return an updated value, else increment the sequence - if sequence is going to overflow, sleep 1 ms