Cleanup usage of `span_to_snippet` and `LintContext::sess` - avoid using `SourceMap::span_to_snippet` directly and use `clippy_utils::source::snippet_opt` instead - don't use `LintContext::sess()` on `EarlyContext`s which have a `sess` field directly available, saving the import of `LintContext` changelog: none |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| README.md | ||