rustdoc: simplify boolean condition (clippy::nonminimal_bool)

This commit is contained in:
Matthias Krüger 2020-03-06 23:31:14 +01:00
parent 7aad89a900
commit 45108b195f

View file

@ -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