1
Fork 0

Remove redundant patterns when matching ( x @ _ to x) (clippy::redundant_pattern)

This commit is contained in:
Matthias Krüger 2020-03-05 11:26:51 +01:00
parent 1e179690f8
commit edd3e175d6
3 changed files with 3 additions and 3 deletions

View file

@ -2727,7 +2727,7 @@ fn naive_assoc_href(it: &clean::Item, link: AssocItemLink<'_>) -> String {
let name = it.name.as_ref().unwrap();
let ty = match it.type_() {
Typedef | AssocType => AssocType,
s @ _ => s,
s => s,
};
let anchor = format!("#{}.{}", ty, name);