From 47c2625d38f902c200e083da4ea58fc40bfe3775 Mon Sep 17 00:00:00 2001
From: Jake Howard <git@theorangeone.net>
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<S> MapResult<S> for Option<S> {
     }
 }
 
+#[allow(clippy::unnecessary_wraps)]
 const fn _has_source<T>(e: T) -> Option<T> {
     Some(e)
 }
-- 
GitLab