diff --git a/src/semaphore.rs b/src/semaphore.rs index acb8a3b..4f28055 100644 --- a/src/semaphore.rs +++ b/src/semaphore.rs @@ -152,7 +152,7 @@ impl Semaphore { Ordering::AcqRel, Ordering::Acquire, ) { - Ok(_) => return Some(SemaphoreGuardArc(self.clone())), + Ok(_) => return Some(SemaphoreGuardArc(Some(self.clone()))), Err(c) => count = c, } }