forked from nrabulinski/attic
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
|
where
|
||||||
F::Output: Send + 'static,
|
F::Output: Send + 'static,
|
||||||
{
|
{
|
||||||
|
#[must_use]
|
||||||
pub fn new(f: F) -> Self {
|
pub fn new(f: F) -> Self {
|
||||||
Self { f: Some(f) }
|
Self { f: Some(f) }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue