librustdoc: Address some clippy lints
Also ignore clippy's "collapsible if..." lints.
This commit is contained in:
parent
256721ee51
commit
7e055c6837
4 changed files with 11 additions and 13 deletions
|
|
@ -1190,11 +1190,9 @@ fn render_deref_methods(
|
|||
}
|
||||
}
|
||||
render_assoc_items_inner(w, cx, container_item, did, what, derefs);
|
||||
} else {
|
||||
if let Some(prim) = target.primitive_type() {
|
||||
if let Some(&did) = cache.primitive_locations.get(&prim) {
|
||||
render_assoc_items_inner(w, cx, container_item, did, what, derefs);
|
||||
}
|
||||
} else if let Some(prim) = target.primitive_type() {
|
||||
if let Some(&did) = cache.primitive_locations.get(&prim) {
|
||||
render_assoc_items_inner(w, cx, container_item, did, what, derefs);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -127,12 +127,12 @@ pub(super) fn print_item(cx: &Context<'_>, item: &clean::Item, buf: &mut Buffer,
|
|||
};
|
||||
|
||||
let item_vars = ItemVars {
|
||||
page: page,
|
||||
page,
|
||||
static_root_path: page.get_static_root_path(),
|
||||
typ: typ,
|
||||
typ,
|
||||
name: item.name.as_ref().unwrap().as_str(),
|
||||
item_type: &item.type_().to_string(),
|
||||
path_components: path_components,
|
||||
path_components,
|
||||
stability_since_raw: &stability_since_raw,
|
||||
src_href: src_href.as_deref(),
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue