From 8d419d47995ba0c9b4ac33c91f774332a5d02d24 Mon Sep 17 00:00:00 2001 From: Bauke Date: Tue, 16 Jan 2024 12:06:18 +0100 Subject: [PATCH] Move the global lints to Cargo.toml. --- Cargo.toml | 7 +++++++ source/main.rs | 3 --- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index dc35467..588887f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,3 +20,10 @@ regex = "1.10.2" [dependencies.clap] features = ["derive"] version = "4.4.7" + +[lints.clippy] +missing_docs_in_private_items = "warn" + +[lints.rust] +missing_docs = "warn" +unsafe_code = "forbid" diff --git a/source/main.rs b/source/main.rs index 6bee81e..cf8a6bc 100644 --- a/source/main.rs +++ b/source/main.rs @@ -2,9 +2,6 @@ //! //! > **Bauke's Ad-hoc Utilities.** -#![forbid(unsafe_code)] -#![warn(missing_docs, clippy::missing_docs_in_private_items)] - mod cli; mod logging;