]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_symbol_mangling/src/legacy.rs
Auto merge of #106283 - JulianKnodt:enum_err, r=cjgillot
[rust.git] / compiler / rustc_symbol_mangling / src / legacy.rs
index a59c9011ab21a4116e4452b206392781e0ab0e25..23ff6b333f0dd7626a397f3c1445e27a058e063e 100644 (file)
@@ -175,7 +175,7 @@ fn finalize_pending_component(&mut self) {
     fn finish(mut self, hash: u64) -> String {
         self.finalize_pending_component();
         // E = end name-sequence
-        let _ = write!(self.result, "17h{:016x}E", hash);
+        let _ = write!(self.result, "17h{hash:016x}E");
         self.result
     }
 }
@@ -227,7 +227,7 @@ fn print_type(mut self, ty: Ty<'tcx>) -> Result<Self::Type, Self::Error> {
                 self = self.print_type(ty)?;
                 self.write_str("; ")?;
                 if let Some(size) = size.kind().try_to_bits(self.tcx().data_layout.pointer_size) {
-                    write!(self, "{}", size)?
+                    write!(self, "{size}")?
                 } else if let ty::ConstKind::Param(param) = size.kind() {
                     self = param.print(self)?
                 } else {