rustdoc: simplify boolean condition (clippy::nonminimal_bool)
This commit is contained in:
parent
7aad89a900
commit
45108b195f
1 changed files with 1 additions and 1 deletions
|
|
@ -577,7 +577,7 @@ fn filter_non_trait_generics(trait_did: DefId, mut g: clean::Generics) -> clean:
|
|||
name: ref _name,
|
||||
},
|
||||
ref bounds,
|
||||
} => !(*s == "Self" && did == trait_did) && !bounds.is_empty(),
|
||||
} => !(bounds.is_empty() || *s == "Self" && did == trait_did),
|
||||
_ => true,
|
||||
});
|
||||
g
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue