From d5de5daa059caf20ee72349710b7a3ba4095efbf Mon Sep 17 00:00:00 2001 From: Pedro Mendes Date: Fri, 17 Nov 2023 15:23:03 -0300 Subject: [PATCH] refactor(lints): Move all lints to `Cargo.toml` --- Cargo.toml | 8 ++++++++ src/main.rs | 3 --- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1199f5c..fd53408 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,6 +12,14 @@ repository = "https://github.com/newtoallofthis123/lyrics_cli" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints.clippy] +all = "warn" +pedantic = "warn" +nursery = "warn" +cargo = "warn" +multiple_crate_versions = "allow" +module_name_repetitions = "allow" + [dependencies] inquire = {version = "0.6"} bunt = {version = "0.2"} diff --git a/src/main.rs b/src/main.rs index 2106a9b..6e211f9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,3 @@ -#![warn(clippy::all, clippy::pedantic, clippy::nursery, clippy::cargo)] -#![allow(clippy::multiple_crate_versions, clippy::module_name_repetitions)] - use human_panic::setup_panic; mod cli;