Skip to content

Commit 5853c28

Browse files
committed
Simply Abi::fmt
1 parent e5defd0 commit 5853c28

File tree

1 file changed

+1
-3
lines changed
  • compiler/rustc_target/src/spec

1 file changed

+1
-3
lines changed

compiler/rustc_target/src/spec/abi.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,6 @@ impl Abi {
324324

325325
impl fmt::Display for Abi {
326326
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
327-
match self {
328-
abi => write!(f, "\"{}\"", abi.name()),
329-
}
327+
write!(f, "\"{}\"", self.name())
330328
}
331329
}

0 commit comments

Comments
 (0)