mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Replace write! with direct calls
This commit is contained in:
parent
b594f9c441
commit
1a37b17162
13 changed files with 59 additions and 49 deletions
|
@ -43,7 +43,7 @@ impl CfgAtom {
|
|||
impl fmt::Display for CfgAtom {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
match self {
|
||||
CfgAtom::Flag(name) => write!(f, "{}", name),
|
||||
CfgAtom::Flag(name) => name.fmt(f),
|
||||
CfgAtom::KeyValue { key, value } => write!(f, "{} = {:?}", key, value),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue