From 34f53baf85fb5c7163ec5d71a8ab9d45d3f271b6 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 22 Feb 2025 23:01:54 +0000 Subject: update to rust edition 2024 --- azalea-core/src/math.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'azalea-core/src/math.rs') diff --git a/azalea-core/src/math.rs b/azalea-core/src/math.rs index a763fc49..c09bddda 100644 --- a/azalea-core/src/math.rs +++ b/azalea-core/src/math.rs @@ -91,18 +91,10 @@ pub fn to_degrees(radians: f64) -> f64 { /// /// This function exists because f64::signum doesn't check for 0. pub fn sign(num: f64) -> f64 { - if num == 0. { - 0. - } else { - num.signum() - } + if num == 0. { 0. } else { num.signum() } } pub fn sign_as_int(num: f64) -> i32 { - if num == 0. { - 0 - } else { - num.signum() as i32 - } + if num == 0. { 0 } else { num.signum() as i32 } } #[cfg(test)] -- cgit v1.2.3