From 6ad9ebb7d82b5cc4e17fa511014b1c7e3cfdc6c2 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Fri, 13 Oct 2023 14:28:23 -0700 Subject: [PATCH] Change documentation & unnecessary qualification warnings. Don't warn during `cargo build` or `cargo test`, but deny them in `mk/clippy.sh` so that they are caught in CI. Limit `cargo build` warnings to things that matter during the edit/test cycle. --- mk/clippy.sh | 1 + src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mk/clippy.sh b/mk/clippy.sh index 6fcb54766e..9184420b4d 100755 --- a/mk/clippy.sh +++ b/mk/clippy.sh @@ -23,5 +23,6 @@ cargo clippy \ --all-features --all-targets \ -- \ --deny missing_docs \ + --deny unused_qualifications \ --deny warnings \ $NULL diff --git a/src/lib.rs b/src/lib.rs index 93124be807..2828741970 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -48,7 +48,7 @@ non_snake_case, unsafe_code )] -#![deny(missing_docs, unused_qualifications, variant_size_differences)] +#![deny(variant_size_differences)] #![forbid(unused_results)] #![no_std]