Avoid another &Lrc<..>
in a return value.
This commit is contained in:
parent
2123509351
commit
4547c0a990
3 changed files with 3 additions and 2 deletions
|
@ -1380,7 +1380,7 @@ pub enum ExternalSourceKind {
|
|||
}
|
||||
|
||||
impl ExternalSource {
|
||||
pub fn get_source(&self) -> Option<&Lrc<String>> {
|
||||
pub fn get_source(&self) -> Option<&str> {
|
||||
match self {
|
||||
ExternalSource::Foreign { kind: ExternalSourceKind::Present(ref src), .. } => Some(src),
|
||||
_ => None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue