File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ pub trait Decoder<T> {
7
7
fn decoder ( self ) -> Option < Codec < T > > ;
8
8
}
9
9
10
- impl < ' a > Decoder < UnknownType > for & ' a str {
10
+ impl Decoder < UnknownType > for & str {
11
11
fn decoder ( self ) -> Option < Codec < UnknownType > > {
12
12
decoder:: find_by_name ( self )
13
13
}
@@ -39,7 +39,7 @@ pub trait Encoder<T> {
39
39
fn encoder ( self ) -> Option < Codec < T > > ;
40
40
}
41
41
42
- impl < ' a > Encoder < UnknownType > for & ' a str {
42
+ impl Encoder < UnknownType > for & str {
43
43
fn encoder ( self ) -> Option < Codec < UnknownType > > {
44
44
encoder:: find_by_name ( self )
45
45
}
Original file line number Diff line number Diff line change 4
4
#![ allow( clippy:: too_many_arguments) ]
5
5
// FFI Types may differ across platforms, making casts necessary
6
6
#![ allow( clippy:: unnecessary_cast) ]
7
+ // This lint sometimes suggests worse code. See rust-lang/rust-clippy#13514
8
+ #![ allow( clippy:: needless_lifetimes) ]
7
9
8
10
#[ macro_use]
9
11
extern crate bitflags;
You can’t perform that action at this time.
0 commit comments