[librsvg: 15/33] Move options for warnings to lib.rs as they need to be in the toplevel
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 15/33] Move options for warnings to lib.rs as they need to be in the toplevel
- Date: Mon, 2 Nov 2020 16:59:47 +0000 (UTC)
commit 9ae92d000e42abdf4a978e405c33fbbd69f8a9a2
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Oct 30 10:56:15 2020 -0600
Move options for warnings to lib.rs as they need to be in the toplevel
src/api.rs | 7 -------
src/lib.rs | 9 ++++++++-
2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/api.rs b/src/api.rs
index 81037568..75b927d9 100644
--- a/src/api.rs
+++ b/src/api.rs
@@ -141,14 +141,7 @@
//! [SVG 1.1]: https://www.w3.org/TR/SVG11/
//! [SVG 2]: https://www.w3.org/TR/SVG2/
-// Enable lint group collections
-#![warn(nonstandard_style, rust_2018_idioms, unused)]
-// Some lints no longer exist
-#![warn(renamed_and_removed_lints)]
-// Standalone lints
-#![warn(trivial_casts, trivial_numeric_casts)]
#![warn(missing_docs)]
-#![deny(warnings)]
pub use crate::{
error::{DefsLookupErrorKind, HrefError, LoadingError, RenderingError},
diff --git a/src/lib.rs b/src/lib.rs
index 550a914a..c0c6ba75 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -56,7 +56,14 @@
#![allow(clippy::clone_on_ref_ptr)]
#![allow(clippy::not_unsafe_ptr_arg_deref)]
#![allow(clippy::too_many_arguments)]
-#![warn(unused)]
+
+#![warn(nonstandard_style, rust_2018_idioms, unused)]
+// Some lints no longer exist
+#![warn(renamed_and_removed_lints)]
+
+// Standalone lints
+#![warn(trivial_casts, trivial_numeric_casts)]
+#![deny(warnings)]
// The public API is exported here
pub use crate::api::*;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]