build(cargo): specify lints in Cargo.toml

This commit is contained in:
EdJoPaTo
2024-03-15 03:17:52 +01:00
parent a60eb5266b
commit d7415f40c7
2 changed files with 6 additions and 3 deletions
+6
View File
@@ -11,6 +11,12 @@ categories = ["command-line-interface"]
include = ["src/**/*", "README.md"] include = ["src/**/*", "README.md"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # 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] [dependencies]
ratatui = { version = "0.26", default-features = false } ratatui = { version = "0.26", default-features = false }
unicode-width = "0.1" unicode-width = "0.1"
-3
View File
@@ -1,6 +1,3 @@
#![forbid(unsafe_code)]
#![warn(clippy::pedantic, clippy::nursery)]
/*! /*!
Widget built to show Tree Data structures. Widget built to show Tree Data structures.