mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +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
|
@ -128,7 +128,7 @@ impl fmt::Display for CfgDiff {
|
|||
};
|
||||
f.write_str(sep)?;
|
||||
|
||||
write!(f, "{}", atom)?;
|
||||
atom.fmt(f)?;
|
||||
}
|
||||
|
||||
if !self.disable.is_empty() {
|
||||
|
@ -146,7 +146,7 @@ impl fmt::Display for CfgDiff {
|
|||
};
|
||||
f.write_str(sep)?;
|
||||
|
||||
write!(f, "{}", atom)?;
|
||||
atom.fmt(f)?;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -170,7 +170,7 @@ impl fmt::Display for InactiveReason {
|
|||
};
|
||||
f.write_str(sep)?;
|
||||
|
||||
write!(f, "{}", atom)?;
|
||||
atom.fmt(f)?;
|
||||
}
|
||||
let is_are = if self.enabled.len() == 1 { "is" } else { "are" };
|
||||
write!(f, " {} enabled", is_are)?;
|
||||
|
@ -189,7 +189,7 @@ impl fmt::Display for InactiveReason {
|
|||
};
|
||||
f.write_str(sep)?;
|
||||
|
||||
write!(f, "{}", atom)?;
|
||||
atom.fmt(f)?;
|
||||
}
|
||||
let is_are = if self.disabled.len() == 1 { "is" } else { "are" };
|
||||
write!(f, " {} disabled", is_are)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue