Add #[allow(unused)] to test in cargo dev new_lint
This commit is contained in:
@@ -186,6 +186,7 @@ pub(crate) fn get_stabilization_version() -> String {
|
||||
fn get_test_file_contents(lint_name: &str, header_commands: Option<&str>) -> String {
|
||||
let mut contents = format!(
|
||||
indoc! {"
|
||||
#![allow(unused)]
|
||||
#![warn(clippy::{})]
|
||||
|
||||
fn main() {{
|
||||
|
||||
Reference in New Issue
Block a user