From 7055a1cb34f72e86a7e125ed428df265f0aa9a2a Mon Sep 17 00:00:00 2001 From: Dongin Kim Date: Sat, 11 Sep 2021 21:18:38 +0900 Subject: [PATCH] apply cargo fmt --- vm/src/stdlib/math.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vm/src/stdlib/math.rs b/vm/src/stdlib/math.rs index 094dcde144..dad93ddde5 100644 --- a/vm/src/stdlib/math.rs +++ b/vm/src/stdlib/math.rs @@ -678,7 +678,7 @@ fn math_fmod(x: IntoPyFloat, y: IntoPyFloat, vm: &VirtualMachine) -> PyResult PyResult { let x = x.to_f64(); let y = y.to_f64(); - + if x.is_finite() && y.is_finite() { if y == 0.0 { return Err(vm.new_value_error("math domain error".to_owned())); @@ -698,7 +698,7 @@ fn math_remainder(x: IntoPyFloat, y: IntoPyFloat, vm: &VirtualMachine) -> PyResu return Ok(1.0_f64.copysign(x) * r); } if x.is_finite() && y.is_infinite() { - return Ok(fmod(x, y)) + return Ok(fmod(x, y)); } if x.is_infinite() && y == 0.0 { return Err(vm.new_value_error("math domain error".to_owned()));