]> git.lizzy.rs Git - rust.git/commitdiff
Fix: made suggested change
authorlinux1 <tmaloney@pdx.edu>
Mon, 23 Aug 2021 21:56:04 +0000 (17:56 -0400)
committerlinux1 <tmaloney@pdx.edu>
Mon, 23 Aug 2021 21:56:04 +0000 (17:56 -0400)
compiler/rustc_target/src/asm/s390x.rs

index 5ed93c0c1a9ce52b2a55f876a19f0535f2e5f94f..a74873f17476ea4d9f96ddc8c9c1a9dd211be751 100644 (file)
@@ -101,6 +101,6 @@ pub fn emit(
         _arch: InlineAsmArch,
         _modifier: Option<char>,
     ) -> fmt::Result {
-        out.write_str(&format!("%{}", self.name()))
+        write!(out, "%{}", self.name())
     }
 }