Răsfoiți Sursa

Lock down the cast lints

Benjamin Sago 4 ani în urmă
părinte
comite
1c55cd1077
2 a modificat fișierele cu 8 adăugiri și 0 ștergeri
  1. 4 0
      dns-transport/src/lib.rs
  2. 4 0
      dns/src/lib.rs

+ 4 - 0
dns-transport/src/lib.rs

@@ -16,6 +16,10 @@
 #![allow(clippy::pub_enum_variant_names)]
 #![allow(clippy::wildcard_imports)]
 
+#![deny(clippy::cast_possible_truncation)]
+#![deny(clippy::cast_lossless)]
+#![deny(clippy::cast_possible_wrap)]
+#![deny(clippy::cast_sign_loss)]
 #![deny(unsafe_code)]
 
 use async_trait::async_trait;

+ 4 - 0
dns/src/lib.rs

@@ -16,6 +16,10 @@
 #![allow(clippy::struct_excessive_bools)]
 #![allow(clippy::wildcard_imports)]
 
+#![deny(clippy::cast_possible_truncation)]
+#![deny(clippy::cast_lossless)]
+#![deny(clippy::cast_possible_wrap)]
+#![deny(clippy::cast_sign_loss)]
 #![deny(unsafe_code)]