diff --git a/Cargo.toml b/Cargo.toml index eff82d7..0072b1b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,12 @@ categories = ["command-line-interface"] include = ["src/**/*", "README.md"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints.rust] +unsafe_code = "forbid" +[lints.clippy] +pedantic = "warn" +nursery = "warn" + [dependencies] ratatui = { version = "0.26", default-features = false } unicode-width = "0.1" diff --git a/src/lib.rs b/src/lib.rs index f627084..b1ca916 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,3 @@ -#![forbid(unsafe_code)] -#![warn(clippy::pedantic, clippy::nursery)] - /*! Widget built to show Tree Data structures.