From e5713f5785c8ca70419bf867f9f9bdce6e7f7fd5 Mon Sep 17 00:00:00 2001 From: Bauke Date: Wed, 31 Jan 2024 12:43:47 +0100 Subject: [PATCH] Move global lints to Cargo.toml. --- Cargo.toml | 7 +++++++ source/lib.rs | 3 --- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 508ec92..4de2e28 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,6 +12,13 @@ edition = "2021" [lib] path = "source/lib.rs" +[lints.clippy] +missing_docs_in_private_items = "warn" + +[lints.rust] +missing_docs = "warn" +unsafe_code = "forbid" + [dependencies] byteorder = "1.5.0" serde = { version = "1.0.196", features = ["derive"] } diff --git a/source/lib.rs b/source/lib.rs index 17bf190..7ceb351 100644 --- a/source/lib.rs +++ b/source/lib.rs @@ -1,6 +1,3 @@ -#![forbid(unsafe_code)] -#![warn(missing_docs, clippy::missing_docs_in_private_items)] - //! # WebExtension Native Messaging //! //! > **WebExtension native messaging library for Rust.**