diff --git a/src/lib.rs b/src/lib.rs index bbab2bb..b5522c7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -322,6 +322,7 @@ where /// /// The `Strategy` decides whether the scope guard's closure should run. #[inline] + #[must_use] pub fn with_strategy(v: T, dropfn: F) -> ScopeGuard { ScopeGuard { value: ManuallyDrop::new(v),