commit 47c2625d38f902c200e083da4ea58fc40bfe3775
parent 49af9cf4f5f8264384c7fa9063299f44e7536068
Author: Jake Howard <git@theorangeone.net>
Date: Sat, 27 Mar 2021 14:36:50 +0000
Prevent `clippy` complaining at method
It's not incorrectly wrapped. We care about the return type being `Option`.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/error.rs b/src/error.rs
@@ -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)
}