mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
style: simplify string interpolation
This commit is contained in:
parent
b32f181f47
commit
7c34eb3880
43 changed files with 71 additions and 78 deletions
|
@ -363,7 +363,7 @@ impl MirEvalError {
|
|||
)?;
|
||||
}
|
||||
Either::Right(closure) => {
|
||||
writeln!(f, "In {:?}", closure)?;
|
||||
writeln!(f, "In {closure:?}")?;
|
||||
}
|
||||
}
|
||||
let source_map = db.body_with_source_map(*def).1;
|
||||
|
@ -424,7 +424,7 @@ impl MirEvalError {
|
|||
| MirEvalError::StackOverflow
|
||||
| MirEvalError::CoerceUnsizedError(_)
|
||||
| MirEvalError::InternalError(_)
|
||||
| MirEvalError::InvalidVTableId(_) => writeln!(f, "{:?}", err)?,
|
||||
| MirEvalError::InvalidVTableId(_) => writeln!(f, "{err:?}")?,
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue