1
Fork 0

Merge commit '7bfc26ec8e' into clippyup

This commit is contained in:
flip1995 2021-08-12 11:16:25 +02:00
parent 652b6a771f
commit 1ad5464200
77 changed files with 1314 additions and 378 deletions

View file

@ -168,7 +168,7 @@ pub fn snippet<'a, T: LintContext>(cx: &T, span: Span, default: &'a str) -> Cow<
snippet_opt(cx, span).map_or_else(|| Cow::Borrowed(default), From::from)
}
/// Same as `snippet`, but it adapts the applicability level by following rules:
/// Same as [`snippet`], but it adapts the applicability level by following rules:
///
/// - Applicability level `Unspecified` will never be changed.
/// - If the span is inside a macro, change the applicability level to `MaybeIncorrect`.