瀏覽代碼

Prevent `clippy` complaining at method

It's not incorrectly wrapped. We care about the return type being `Option`.
Jake Howard 4 年之前
父節點
當前提交
47c2625d38
共有 1 個文件被更改,包括 1 次插入0 次删除
  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)
 }