1
Fork 0

couple of clippy::complexity fixes

This commit is contained in:
Matthias Krüger 2022-04-13 22:51:34 +02:00
parent 0d13f6afeb
commit 7c2d57e0fa
16 changed files with 25 additions and 29 deletions

View file

@ -133,9 +133,9 @@ impl<'a, 'tcx> Annotator<'a, 'tcx> {
}
// `Deprecation` is just two pointers, no need to intern it
let depr_entry = DeprecationEntry::local(depr.clone(), def_id);
let depr_entry = DeprecationEntry::local(*depr, def_id);
self.index.depr_map.insert(def_id, depr_entry);
} else if let Some(parent_depr) = self.parent_depr.clone() {
} else if let Some(parent_depr) = self.parent_depr {
if inherit_deprecation.yes() {
is_deprecated = true;
info!("tagging child {:?} as deprecated from parent", def_id);