Prechádzať zdrojové kódy

Lock down the cast lints

Benjamin Sago 4 rokov pred
rodič
commit
1c55cd1077
2 zmenil súbory, kde vykonal 8 pridanie a 0 odobranie
  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)]