]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/cast_size.rs
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / cast_size.rs
index e8b0f4a5b8235a0e6d9f4b1a495ab5ab2bc9cbb7..8f691104c517e6e8f829ee1452ff7d6b5afbe92c 100644 (file)
@@ -7,10 +7,13 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-
-#![feature(tool_lints)]
-
-#[warn(clippy::cast_precision_loss, clippy::cast_possible_truncation, clippy::cast_sign_loss, clippy::cast_possible_wrap, clippy::cast_lossless)]
+#[warn(
+    clippy::cast_precision_loss,
+    clippy::cast_possible_truncation,
+    clippy::cast_sign_loss,
+    clippy::cast_possible_wrap,
+    clippy::cast_lossless
+)]
 #[allow(clippy::no_effect, clippy::unnecessary_operation)]
 fn main() {
     // Casting from *size