Enable clippy pedantic lints
diff --git a/src/lib.rs b/src/lib.rs
index ec2749f..df82a52 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -259,6 +259,9 @@
// Syn types in rustdoc of other crates get linked to here.
#![doc(html_root_url = "https://docs.rs/syn/0.13.11")]
+#![cfg_attr(feature = "cargo-clippy", deny(clippy, clippy_pedantic))]
+
+// Ignored clippy lints.
#![cfg_attr(
feature = "cargo-clippy",
allow(
@@ -266,6 +269,20 @@
needless_pass_by_value, redundant_field_names
)
)]
+// Ignored clippy_pedantic lints.
+#![cfg_attr(
+ feature = "cargo-clippy",
+ allow(
+ cast_possible_truncation,
+ cast_possible_wrap,
+ items_after_statements,
+ similar_names,
+ single_match_else,
+ stutter,
+ unseparated_literal_suffix,
+ use_self,
+ )
+)]
#[cfg(feature = "proc-macro")]
extern crate proc_macro;