Silence warning about non-exhaustive pattern

These were flagged by `cargo clippy`:

    warning: this seems like a manual implementation of the
             non-exhaustive pattern

The non_exhaustive attribute isn't available until we increase the
minimum Rust version to 1.40, so we should just silence these warnings
in the meantime.
v0.7.x
Alex Crawford 2020-12-27 10:53:49 -08:00
parent 752e81489e
commit 1a1861721b
1 changed files with 2 additions and 1 deletions

View File

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