From 114b75703aab558995a250768de47378c57349d9 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Tue, 23 Aug 2022 21:29:16 -0700 Subject: Add queue structure --- src/sync.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sync.rs') diff --git a/src/sync.rs b/src/sync.rs index 44c060e..0e0ace2 100644 --- a/src/sync.rs +++ b/src/sync.rs @@ -31,7 +31,7 @@ pub mod interface { /// /// Initializable type pub trait Initializable { - fn init(&mut self); + fn init(&mut self); } } @@ -62,8 +62,8 @@ impl NullLock { pub fn init(&self) { use interface::Mutex; self.lock(|initializable| { - initializable.init(); - }); + initializable.init(); + }); } } -- cgit v1.2.1