0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2024-12-13 17:22:58 +01:00

Prevent clippy complaining at method

It's not incorrectly wrapped. We care about the return type being `Option`.
This commit is contained in:
Jake Howard 2021-03-27 14:36:50 +00:00
parent 49af9cf4f5
commit 47c2625d38
No known key found for this signature in database
GPG key ID: 57AFB45680EDD477

View file

@ -152,6 +152,7 @@ impl<S> MapResult<S> for Option<S> {
}
}
#[allow(clippy::unnecessary_wraps)]
const fn _has_source<T>(e: T) -> Option<T> {
Some(e)
}