]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/ui/float_cmp_const.rs
Update tests to remove old numeric constants
[rust.git] / src / tools / clippy / tests / ui / float_cmp_const.rs
index dfc025558a2f430b35b1624b6cd37c5263dc76c4..263d9a7b92ddb2edb65bacef04ee55ca3870e3ad 100644 (file)
@@ -48,7 +48,7 @@ fn main() {
     v != 1.0;
 
     const ZERO_ARRAY: [f32; 3] = [0.0, 0.0, 0.0];
-    const ZERO_INF_ARRAY: [f32; 3] = [0.0, ::std::f32::INFINITY, ::std::f32::NEG_INFINITY];
+    const ZERO_INF_ARRAY: [f32; 3] = [0.0, f32::INFINITY, f32::NEG_INFINITY];
     const NON_ZERO_ARRAY: [f32; 3] = [0.0, 0.1, 0.2];
     const NON_ZERO_ARRAY2: [f32; 3] = [0.2, 0.1, 0.0];