mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +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
|
@ -105,7 +105,7 @@ impl CrateName {
|
|||
|
||||
impl fmt::Display for CrateName {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "{}", self.0)
|
||||
self.0.fmt(f)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -160,7 +160,7 @@ impl From<CrateName> for CrateDisplayName {
|
|||
|
||||
impl fmt::Display for CrateDisplayName {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "{}", self.crate_name)
|
||||
self.crate_name.fmt(f)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue