1
Fork 0

Rollup merge of #97812 - TaKO8Ki:suggest-to-swap-struct-and-trait, r=estebank

Suggest to swap a struct and a trait in trait impls

closes #89590
This commit is contained in:
Dylan DPC 2022-06-11 07:42:14 +02:00 committed by GitHub
commit 640019ba6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 185 additions and 2 deletions

View file

@ -333,7 +333,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()),
}
}
}