Function clippy_utils::is_lint_allowed [−][src]
pub fn is_lint_allowed(
cx: &LateContext<'_>,
lint: &'static Lint,
id: HirId
) -> boolExpand description
Returns true if the lint is allowed in the current context
Useful for skipping long running code when it’s unnecessary
