diff options
| author | Mica White <botahamec@outlook.com> | 2024-03-08 15:34:07 -0500 |
|---|---|---|
| committer | Mica White <botahamec@outlook.com> | 2024-03-08 15:34:07 -0500 |
| commit | e98635ad8f9015f3749a8d90099ebd37bfb8100c (patch) | |
| tree | 31aed6268ffcdad0407fa48e52d79ca288a216b3 /examples/basic.rs | |
| parent | 44347114329545f6b53a621e09a596c53884413a (diff) | |
Allow moves
Diffstat (limited to 'examples/basic.rs')
| -rw-r--r-- | examples/basic.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/basic.rs b/examples/basic.rs index 87e7a60..4ff85f8 100644 --- a/examples/basic.rs +++ b/examples/basic.rs @@ -1,11 +1,10 @@ use std::thread; -use happylock::mutex::{Mutex, SpinLock}; -use happylock::ThreadKey; +use happylock::{Mutex, ThreadKey}; const N: usize = 10; -static DATA: SpinLock<i32> = Mutex::new(0); +static DATA: Mutex<i32> = Mutex::new(0); fn main() { for _ in 0..N { |
