From 612bb84708bebe30584008bc2842b068c27d1669 Mon Sep 17 00:00:00 2001 From: Jules Bertholet Date: Mon, 11 Dec 2023 00:12:54 -0500 Subject: [PATCH] Fix error --- src/semaphore.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, } }