couple of clippy::complexity fixes
This commit is contained in:
parent
0d13f6afeb
commit
7c2d57e0fa
16 changed files with 25 additions and 29 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue