Pārlūkot izejas kodu

Lock down the cast lints

Benjamin Sago 4 gadi atpakaļ
vecāks
revīzija
1c55cd1077
2 mainītis faili ar 8 papildinājumiem un 0 dzēšanām
  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)]