소스 검색

Silence warning about matches macro

These were flagged by `cargo clippy`:

    warning: match expression looks like `matches!` macro

The matches! macro isn't stabilized until Rust 1.42.
Alex Crawford 4 년 전
부모
커밋
48323b5980
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/lib.rs

+ 1 - 0
src/lib.rs

@@ -90,6 +90,7 @@ compile_error!("at least one socket needs to be enabled"); */
 // FIXME(dlrobertson): clippy fails with this lint
 #![allow(clippy::if_same_then_else)]
 #![allow(clippy::manual_non_exhaustive)]
+#![allow(clippy::match_like_matches_macro)]
 
 #[cfg(feature = "alloc")]
 extern crate alloc;