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.
#[allow(unused)]
cargo dev new_lint
1 parent 481dc2e commit 6d8959eCopy full SHA for 6d8959e
book/src/development/adding_lints.md
@@ -90,6 +90,7 @@ We start by opening the test file created at `tests/ui/foo_functions.rs`.
90
Update the file with some examples to get started:
91
92
```rust
93
+#![allow(unused)]
94
#![warn(clippy::foo_functions)]
95
96
// Impl methods
clippy_dev/src/new_lint.rs
@@ -186,6 +186,7 @@ pub(crate) fn get_stabilization_version() -> String {
186
fn get_test_file_contents(lint_name: &str, header_commands: Option<&str>) -> String {
187
let mut contents = format!(
188
indoc! {"
189
+ #![allow(unused)]
190
#![warn(clippy::{})]
191
192
fn main() {{
0 commit comments