We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5956896 commit 1cf7218Copy full SHA for 1cf7218
clippy_lints/src/allow_attribute.rs
@@ -12,15 +12,15 @@ declare_clippy_lint! {
12
/// ### Why is this bad?
13
/// Using `#[allow]` isn't bad, but `#[expect]` may be preferred as it lints if the code **doesn't** produce a warning.
14
/// ### Example
15
- /// ```rust
+ /// ```rust,ignore
16
/// #[allow(unused_mut)]
17
/// fn foo() -> usize {
18
/// let mut a = Vec::new();
19
/// a.len()
20
///}
21
/// ```
22
/// Use instead:
23
24
/// # #![feature(lint_reasons)]
25
/// #[expect(unused_mut)]
26
0 commit comments