fix clippy::{redundant_guards, useless_format}
This commit is contained in:
parent
d4589a492f
commit
fd95627134
12 changed files with 16 additions and 21 deletions
|
@ -186,7 +186,7 @@ impl<'a: 'ast, 'ast, 'tcx> LateResolutionVisitor<'a, '_, 'ast, 'tcx> {
|
|||
fallback_label: format!("not a {expected}"),
|
||||
span,
|
||||
span_label: match res {
|
||||
Res::Def(kind, def_id) if kind == DefKind::TyParam => {
|
||||
Res::Def(DefKind::TyParam, def_id) => {
|
||||
Some((self.r.def_span(def_id), "found this type parameter"))
|
||||
}
|
||||
_ => None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue