File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1256,7 +1256,7 @@ impl Convention {
1256
1256
fn check ( & self , other : & str ) -> bool {
1257
1257
match * self {
1258
1258
Convention :: Eq ( this) => this == other,
1259
- Convention :: StartsWith ( this) => other. starts_with ( this) ,
1259
+ Convention :: StartsWith ( this) => other. starts_with ( this) && this != other ,
1260
1260
}
1261
1261
}
1262
1262
}
Original file line number Diff line number Diff line change @@ -45,4 +45,10 @@ impl Bar {
45
45
pub fn to_i64 ( self ) { } //~ERROR: methods called `to_*` usually take self by reference
46
46
pub fn from_i64 ( self ) { } //~ERROR: methods called `from_*` usually take no self
47
47
48
+ // test for false positives
49
+ fn as_ ( self ) { }
50
+ fn into_ ( & self ) { }
51
+ fn is_ ( self ) { }
52
+ fn to_ ( self ) { }
53
+ fn from_ ( self ) { }
48
54
}
You can’t perform that action at this time.
0 commit comments