Explorar o código

Prevent `clippy` complaining at method

It's not incorrectly wrapped. We care about the return type being `Option`.
Jake Howard %!s(int64=4) %!d(string=hai) anos
pai
achega
47c2625d38
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/error.rs

+ 1 - 0
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)
 }