1
0
Fork 0
mirror of https://github.com/zhaofengli/attic.git synced 2024-12-14 11:57:30 +00:00

attic/util: Mark Finally as must_use

This commit is contained in:
Zhaofeng Li 2023-01-17 14:10:27 -07:00
parent 8b52796dcb
commit 0e61ddf927

View file

@ -20,6 +20,7 @@ impl<F: Future + Send + 'static> Finally<F>
where
F::Output: Send + 'static,
{
#[must_use]
pub fn new(f: F) -> Self {
Self { f: Some(f) }
}