1
Fork 0

Avoid another &Lrc<..> in a return value.

This commit is contained in:
Nicholas Nethercote 2024-10-07 13:25:38 +11:00
parent 2123509351
commit 4547c0a990
3 changed files with 3 additions and 2 deletions

View file

@ -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,