From 0c253b8c4e6424f7158c953bb7aba9c8abf7ea76 Mon Sep 17 00:00:00 2001 From: Link Mauve Date: Sat, 25 Oct 2025 18:38:45 +0200 Subject: [PATCH] xmpp-parsers: Deny more warnings lib-wide All warnings denied in macro tests can actually be denied in the whole crate. --- parsers/src/lib.rs | 8 ++++++++ parsers/src/util/macro_tests.rs | 9 --------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/parsers/src/lib.rs b/parsers/src/lib.rs index 194e6ec12787fd2f83f9b8bf4d89cbdce2502bb6..e81cbffed3acc89fa7161ebbeaff0172e34712b6 100644 --- a/parsers/src/lib.rs +++ b/parsers/src/lib.rs @@ -22,6 +22,14 @@ // file, You can obtain one at http://mozilla.org/MPL/2.0/. #![warn(missing_docs)] +#![deny( + non_camel_case_types, + non_snake_case, + unsafe_code, + unused_variables, + unused_mut, + dead_code +)] #![cfg_attr(docsrs, feature(doc_cfg))] #![cfg_attr(docsrs, doc(auto_cfg))] diff --git a/parsers/src/util/macro_tests.rs b/parsers/src/util/macro_tests.rs index 1a7107ebc8af72657cff6e1ed1d492975864c043..a79ca718e9100c59797f6199ff0b76e204a49169 100644 --- a/parsers/src/util/macro_tests.rs +++ b/parsers/src/util/macro_tests.rs @@ -4,15 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#![deny( - non_camel_case_types, - non_snake_case, - unsafe_code, - unused_variables, - unused_mut, - dead_code -)] - mod helpers { // we isolate the helpers into a module, because we do not want to have // them in scope below.