From 47c2625d38f902c200e083da4ea58fc40bfe3775 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 27 Mar 2021 14:36:50 +0000 Subject: [PATCH] Prevent `clippy` complaining at method It's not incorrectly wrapped. We care about the return type being `Option`. --- src/error.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/error.rs b/src/error.rs index a42b1809..a0b28a4b 100644 --- a/src/error.rs +++ b/src/error.rs @@ -152,6 +152,7 @@ impl MapResult for Option { } } +#[allow(clippy::unnecessary_wraps)] const fn _has_source(e: T) -> Option { Some(e) }