More trivial tweaks
This commit is contained in:
parent
25a615bf82
commit
c51c448fae
3 changed files with 6 additions and 12 deletions
|
@ -1655,7 +1655,7 @@ impl<'tcx> Liveness<'_, 'tcx> {
|
|||
// `&'name Ty` -> `&'name mut Ty` or `&Ty` -> `&mut Ty`
|
||||
Some(mut_ty.ty.span.shrink_to_lo())
|
||||
};
|
||||
let pre = if lt.ident.span.lo() == lt.ident.span.hi() { "" } else { " " };
|
||||
let pre = if lt.ident.span.is_empty() { "" } else { " " };
|
||||
Some(errors::UnusedAssignSuggestion {
|
||||
ty_span,
|
||||
pre,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue