xmpp-parsers: Deny more warnings lib-wide

All warnings denied in macro tests can actually be denied in the whole
crate.
This commit is contained in:
Link Mauve 2025-10-25 18:38:45 +02:00
commit 0c253b8c4e
2 changed files with 8 additions and 9 deletions

View file

@ -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))]

View file

@ -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.