mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-10 14:57:14 +00:00
Include space in suggestion mut
in bindings
This commit is contained in:
parent
bacb5c58df
commit
a8f77e12fc
@ -77,7 +77,7 @@ impl<'a, 'tcx> UnusedMutCx<'a, 'tcx> {
|
||||
continue
|
||||
}
|
||||
|
||||
let mut_span = tcx.sess.codemap().span_until_char(ids[0].2, ' ');
|
||||
let mut_span = tcx.sess.codemap().span_through_char(ids[0].2, ' ');
|
||||
|
||||
// Ok, every name wasn't used mutably, so issue a warning that this
|
||||
// didn't need to be mutable.
|
||||
|
@ -22,7 +22,7 @@ warning: variable does not need to be mutable
|
||||
--> $DIR/suggestions.rs:46:13
|
||||
|
|
||||
46 | let mut a = (1); // should suggest no `mut`, no parens
|
||||
| ---^^
|
||||
| ----^
|
||||
| |
|
||||
| help: remove this `mut`
|
||||
|
|
||||
|
Loading…
Reference in New Issue
Block a user