From 0e61ddf9275c8e321b948999b19707c96c9a4841 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Tue, 17 Jan 2023 14:10:27 -0700 Subject: [PATCH] attic/util: Mark Finally as must_use --- attic/src/util.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/attic/src/util.rs b/attic/src/util.rs index e95d7d9..80d408c 100644 --- a/attic/src/util.rs +++ b/attic/src/util.rs @@ -20,6 +20,7 @@ impl Finally where F::Output: Send + 'static, { + #[must_use] pub fn new(f: F) -> Self { Self { f: Some(f) } }