fix wrong replacing
This commit is contained in:
parent
77d5f39771
commit
246caea009
|
@ -1214,7 +1214,7 @@ impl<'a, 'tcx> BorrowckCtxt<'a, 'tcx> {
|
|||
db.span_label(
|
||||
let_span,
|
||||
format!("consider changing this to `{}`",
|
||||
snippet.replace("ref ", "ref mut "))
|
||||
snippet.replacen("ref ", "ref mut ", 1))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue