Remove unnecessary .to_string()
/.as_str()
s
This commit is contained in:
parent
bf3c6c5bed
commit
ef37dcb7db
10 changed files with 15 additions and 15 deletions
|
@ -3288,7 +3288,7 @@ impl<'a> Parser<'a> {
|
|||
} else {
|
||||
Applicability::MaybeIncorrect
|
||||
};
|
||||
err.span_suggestion_verbose(sugg_sp, msg, "=> ".to_string(), applicability);
|
||||
err.span_suggestion_verbose(sugg_sp, msg, "=> ", applicability);
|
||||
}
|
||||
}
|
||||
err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue