diff --git a/src/codec/traits.rs b/src/codec/traits.rs index 1dab8f2..3cccf3f 100644 --- a/src/codec/traits.rs +++ b/src/codec/traits.rs @@ -7,7 +7,7 @@ pub trait Decoder { fn decoder(self) -> Option>; } -impl<'a> Decoder for &'a str { +impl Decoder for &str { fn decoder(self) -> Option> { decoder::find_by_name(self) } @@ -39,7 +39,7 @@ pub trait Encoder { fn encoder(self) -> Option>; } -impl<'a> Encoder for &'a str { +impl Encoder for &str { fn encoder(self) -> Option> { encoder::find_by_name(self) } diff --git a/src/lib.rs b/src/lib.rs index 5fbbfcf..56f3021 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,6 +4,8 @@ #![allow(clippy::too_many_arguments)] // FFI Types may differ across platforms, making casts necessary #![allow(clippy::unnecessary_cast)] +// This lint sometimes suggests worse code. See rust-lang/rust-clippy#13514 +#![allow(clippy::needless_lifetimes)] #[macro_use] extern crate bitflags;