Ignore trait implementations
This commit is contained in:
parent
4c8d248190
commit
4e5c02e898
3 changed files with 23 additions and 12 deletions
|
|
@ -95,6 +95,20 @@ impl A {
|
|||
}
|
||||
}
|
||||
|
||||
trait B {
|
||||
// trait impls are not linted
|
||||
fn func13() -> Option<i32> {
|
||||
Some(1)
|
||||
}
|
||||
}
|
||||
|
||||
impl A for B {
|
||||
// trait impls are not linted
|
||||
fn func13() -> Option<i32> {
|
||||
Some(0)
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
// method calls are not linted
|
||||
func1(true, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue