From e4aff84acbeb9ab1a775cfba5d31c2baf07320f3 Mon Sep 17 00:00:00 2001 From: Marc-Antoine Arnaud Date: Mon, 17 Jun 2024 21:53:41 +0200 Subject: [PATCH] refactor: remove std:: prefix as clippy suggested --- yaserde/tests/skip_if.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yaserde/tests/skip_if.rs b/yaserde/tests/skip_if.rs index 918301a..fde7b58 100644 --- a/yaserde/tests/skip_if.rs +++ b/yaserde/tests/skip_if.rs @@ -47,7 +47,7 @@ fn skip_serializing_if_for_struct() { } fn check_f32_function(&self, value: &f32) -> bool { - (value - 0.0).abs() < std::f32::EPSILON + (value - 0.0).abs() < f32::EPSILON } } @@ -104,7 +104,7 @@ fn skip_serializing_if_for_struct_attributes() { } fn check_f32_function(&self, value: &f32) -> bool { - (value - 0.0).abs() < std::f32::EPSILON + (value - 0.0).abs() < f32::EPSILON } }