Browse Source

Prevent `clippy` complaining at method

It's not incorrectly wrapped. We care about the return type being `Option`.
Jake Howard 4 năm trước cách đây
mục cha
commit
47c2625d38
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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)
 }