diff options
| -rw-r--r-- | clippy_utils/src/source.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_utils/src/source.rs b/clippy_utils/src/source.rs index 4ad7575e720..eecbfb3936a 100644 --- a/clippy_utils/src/source.rs +++ b/clippy_utils/src/source.rs @@ -287,6 +287,7 @@ impl SourceFileRange { self.sf .src .as_ref() + .map(|src| src.as_str()) .or_else(|| self.sf.external_src.get().and_then(|src| src.get_source())) .and_then(|x| x.get(self.range.clone())) } |
