1
Fork 0

suggest swapping a struct and a trait

fmt
This commit is contained in:
Takayuki Maeda 2022-06-07 02:33:23 +09:00
parent 395a09c3da
commit 9db03b9bc8
7 changed files with 107 additions and 2 deletions

View file

@ -338,7 +338,7 @@ impl<'a> FileNameDisplay<'a> {
pub fn to_string_lossy(&self) -> Cow<'a, str> {
match self.inner {
FileName::Real(ref inner) => inner.to_string_lossy(self.display_pref),
_ => Cow::from(format!("{}", self)),
_ => Cow::from(self.to_string()),
}
}
}