mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
style: simplify string interpolation
This commit is contained in:
parent
b32f181f47
commit
7c34eb3880
43 changed files with 71 additions and 78 deletions
|
@ -670,7 +670,7 @@ fn render_const_scalar(
|
|||
TyKind::FnDef(..) => ty.hir_fmt(f),
|
||||
TyKind::Function(_) | TyKind::Raw(_, _) => {
|
||||
let it = u128::from_le_bytes(pad16(b, false));
|
||||
write!(f, "{:#X} as ", it)?;
|
||||
write!(f, "{it:#X} as ")?;
|
||||
ty.hir_fmt(f)
|
||||
}
|
||||
TyKind::Array(ty, len) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue