xmpp-parsers: Deny more warnings lib-wide

Link Mauve created

All warnings denied in macro tests can actually be denied in the whole
crate.

Change summary

parsers/src/lib.rs              | 8 ++++++++
parsers/src/util/macro_tests.rs | 9 ---------
2 files changed, 8 insertions(+), 9 deletions(-)

Detailed changes

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

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.