mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
Simply Abi::fmt
This commit is contained in:
parent
e5defd0102
commit
5853c28a7f
@ -324,8 +324,6 @@ impl Abi {
|
|||||||
|
|
||||||
impl fmt::Display for Abi {
|
impl fmt::Display for Abi {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
match self {
|
write!(f, "\"{}\"", self.name())
|
||||||
abi => write!(f, "\"{}\"", abi.name()),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user