Fix binding mode problems
This commit is contained in:
@@ -404,7 +404,7 @@ impl fmt::Display for FileNameDisplay<'_> {
|
||||
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),
|
||||
FileName::Real(inner) => inner.to_string_lossy(self.display_pref),
|
||||
_ => Cow::from(self.to_string()),
|
||||
}
|
||||
}
|
||||
@@ -1442,7 +1442,7 @@ pub enum ExternalSourceKind {
|
||||
impl ExternalSource {
|
||||
pub fn get_source(&self) -> Option<&str> {
|
||||
match self {
|
||||
ExternalSource::Foreign { kind: ExternalSourceKind::Present(ref src), .. } => Some(src),
|
||||
ExternalSource::Foreign { kind: ExternalSourceKind::Present(src), .. } => Some(src),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user