Add ignore flag to code fragments

This commit is contained in:
blyxyas 2023-03-11 01:08:03 +01:00
parent 59568962ae
commit 1cf72183cf
No known key found for this signature in database
GPG Key ID: 4D38170B5A2FC334

View File

@ -12,7 +12,7 @@ declare_clippy_lint! {
/// ### Why is this bad?
/// Using `#[allow]` isn't bad, but `#[expect]` may be preferred as it lints if the code **doesn't** produce a warning.
/// ### Example
/// ```rust
/// ```rust,ignore
/// #[allow(unused_mut)]
/// fn foo() -> usize {
/// let mut a = Vec::new();
@ -20,7 +20,7 @@ declare_clippy_lint! {
///}
/// ```
/// Use instead:
/// ```rust
/// ```rust,ignore
/// # #![feature(lint_reasons)]
/// #[expect(unused_mut)]
/// fn foo() -> usize {