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:
parent
8b52796dcb
commit
0e61ddf927
1 changed files with 1 additions and 0 deletions
|
@ -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) }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue