Function clippy_utils::source::snippet_opt

source ยท
pub fn snippet_opt(cx: &impl LintContext, span: Span) -> Option<String>
Expand description

Converts a span to a code snippet. Returns None if not available.