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:
parent
f0d660315f
commit
0c253b8c4e
2 changed files with 8 additions and 9 deletions
|
|
@ -22,6 +22,14 @@
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
#![warn(missing_docs)]
|
#![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, feature(doc_cfg))]
|
||||||
#![cfg_attr(docsrs, doc(auto_cfg))]
|
#![cfg_attr(docsrs, doc(auto_cfg))]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,15 +4,6 @@
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
// 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/.
|
// 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 {
|
mod helpers {
|
||||||
// we isolate the helpers into a module, because we do not want to have
|
// we isolate the helpers into a module, because we do not want to have
|
||||||
// them in scope below.
|
// them in scope below.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue