about summary refs log tree commit diff
diff options
context:
space:
mode:
authorlinux1 <tmaloney@pdx.edu>2021-08-23 17:56:04 -0400
committerlinux1 <tmaloney@pdx.edu>2021-08-23 17:56:04 -0400
commita9f623707b8dcaba260b547e1950a4679b3b40eb (patch)
treebcea8af96e5601e0e38c4879df2ec65d13d69a78
parent05cd587726b01415f50ab8def30ea07864298e13 (diff)
downloadrust-a9f623707b8dcaba260b547e1950a4679b3b40eb.tar.gz
rust-a9f623707b8dcaba260b547e1950a4679b3b40eb.zip
Fix: made suggested change
-rw-r--r--compiler/rustc_target/src/asm/s390x.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_target/src/asm/s390x.rs b/compiler/rustc_target/src/asm/s390x.rs
index 5ed93c0c1a9..a74873f1747 100644
--- a/compiler/rustc_target/src/asm/s390x.rs
+++ b/compiler/rustc_target/src/asm/s390x.rs
@@ -101,6 +101,6 @@ impl S390xInlineAsmReg {
         _arch: InlineAsmArch,
         _modifier: Option<char>,
     ) -> fmt::Result {
-        out.write_str(&format!("%{}", self.name()))
+        write!(out, "%{}", self.name())
     }
 }