From e98635ad8f9015f3749a8d90099ebd37bfb8100c Mon Sep 17 00:00:00 2001 From: Mica White Date: Fri, 8 Mar 2024 15:34:07 -0500 Subject: Allow moves --- examples/basic.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'examples/basic.rs') 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 = Mutex::new(0); +static DATA: Mutex = Mutex::new(0); fn main() { for _ in 0..N { -- cgit v1.2.3