From 3e67e702ab2a445a2d07ac1201471582c51b4c09 Mon Sep 17 00:00:00 2001 From: Uwe Klotz Date: Wed, 15 Nov 2023 13:05:28 +0100 Subject: [PATCH] Update crate-level attributes --- src/lib.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 73d1087..59e3adc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,20 +1,26 @@ // SPDX-FileCopyrightText: slowtec GmbH // SPDX-License-Identifier: MPL-2.0 +// Opt-in for allowed-by-default lints (in alphabetical order) +// See also: +#![warn(future_incompatible)] +#![warn(let_underscore)] +#![warn(missing_debug_implementations)] #![warn(rust_2018_idioms)] #![warn(rust_2021_compatibility)] -#![warn(missing_debug_implementations)] #![warn(unreachable_pub)] #![warn(unsafe_code)] -#![warn(rustdoc::broken_intra_doc_links)] +#![warn(unused)] +// Clippy lints #![warn(clippy::pedantic)] // Additional restrictions #![warn(clippy::clone_on_ref_ptr)] #![warn(clippy::missing_const_for_fn)] -#![warn(clippy::self_named_module_files)] +#![warn(clippy::mod_module_files)] // Repeating the type name in `..Default::default()` expressions // is not needed since the context is obvious. #![allow(clippy::default_trait_access)] +// Opt-out of feature "std" #![cfg_attr(not(feature = "std"), no_std)] //! # semval