]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/unnecessary_cast_fixable.fixed
Addition `manual_map` test for `unsafe` blocks
[rust.git] / tests / ui / unnecessary_cast_fixable.fixed
index 350da4965d11d9323433b7cf33631f1fd7e3e0a7..bda0f2c47cdd525a97a62f5e080334dc20e627c8 100644 (file)
@@ -1,7 +1,7 @@
 // run-rustfix
 
 #![warn(clippy::unnecessary_cast)]
-#![allow(clippy::no_effect, clippy::unnecessary_operation)]
+#![allow(clippy::no_effect, clippy::unnecessary_operation, clippy::nonstandard_macro_braces)]
 
 fn main() {
     // casting integer literal to float is unnecessary
@@ -11,6 +11,8 @@ fn main() {
     let _ = -100_f32;
     let _ = -100_f64;
     let _ = -100_f64;
+    100_f32;
+    100_f64;
     // Should not trigger
     #[rustfmt::skip]
     let v = vec!(1);