Skip to content

Commit

Permalink
refactor: remove std:: prefix as clippy suggested
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcAntoine-Arnaud committed Jun 17, 2024
1 parent 3e416be commit e4aff84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yaserde/tests/skip_if.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down Expand Up @@ -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
}
}

Expand Down

0 comments on commit e4aff84

Please sign in to comment.