From d7415f40c70e9ff184c1d87d7cb27d87f488a57c Mon Sep 17 00:00:00 2001 From: EdJoPaTo Date: Fri, 15 Mar 2024 03:17:52 +0100 Subject: [PATCH] build(cargo): specify lints in Cargo.toml --- Cargo.toml | 6 ++++++ src/lib.rs | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) 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.