diff options
| author | Christian Cunningham <c@localhost> | 2022-08-23 21:29:16 -0700 |
|---|---|---|
| committer | Christian Cunningham <c@localhost> | 2022-08-23 21:29:16 -0700 |
| commit | 114b75703aab558995a250768de47378c57349d9 (patch) | |
| tree | 3da0fb3595b25127e042377f3db08fdf4f796614 /src/sync.rs | |
| parent | 052986797d04475490a07fb3846a04206b60fbb0 (diff) | |
Add queue structure
Diffstat (limited to 'src/sync.rs')
| -rw-r--r-- | src/sync.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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<T: interface::Initializable> NullLock<T> { pub fn init(&self) { use interface::Mutex; self.lock(|initializable| { - initializable.init(); - }); + initializable.init(); + }); } } |
