Skip to content

Commit

Permalink
Fix clippy lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitshifter committed Dec 26, 2022
1 parent fa37c7c commit d08bc47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/float_ex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ impl FloatEx for f32 {
impl FloatEx for f64 {
#[inline(always)]
fn acos_approx(self) -> Self {
f64::acos(self.max(-1.0).min(1.0))
f64::acos(self.clamp(-1.0, 1.0))
}
}

0 comments on commit d08bc47

Please sign in to comment.