suggest swapping a struct and a trait
fmt
This commit is contained in:
parent
395a09c3da
commit
9db03b9bc8
7 changed files with 107 additions and 2 deletions
|
@ -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()),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue