1
Fork 0

fix simple clippy lints

This commit is contained in:
klensy 2022-05-21 14:07:18 -04:00
parent b2eba058e6
commit 678059f7d0
21 changed files with 81 additions and 90 deletions

View file

@ -456,7 +456,7 @@ impl<'a, 'tcx> DocFolder for CacheBuilder<'a, 'tcx> {
let ty::Adt(adt, _) = self.tcx.type_of(path.def_id()).kind() &&
adt.is_fundamental() {
for ty in generics {
if let Some(did) = ty.def_id(&self.cache) {
if let Some(did) = ty.def_id(self.cache) {
dids.insert(did);
}
}