Optimize format usage
Per #112156, using `&` in `format!` may cause a small perf delay, so I tried to clean up one module at a time format usage. This PR includes a few removals of the ref in format (they do compile locally without the ref), as well as a few format inlining for consistency.
This commit is contained in:
parent
8771282d4e
commit
bb1ad0a2f1
2 changed files with 8 additions and 8 deletions
|
@ -238,7 +238,7 @@ impl<'a> Parser<'a> {
|
|||
_ => unreachable!(),
|
||||
}
|
||||
.into();
|
||||
let invalid = format!("{}=", &sugg);
|
||||
let invalid = format!("{sugg}=");
|
||||
self.sess.emit_err(errors::InvalidComparisonOperator {
|
||||
span: sp,
|
||||
invalid: invalid.clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue