From 1e41a0bb568bf86a714df2f524e3be092e5bfe4e Mon Sep 17 00:00:00 2001 From: Kim Dong In Date: Mon, 16 Aug 2021 17:16:47 +0900 Subject: [PATCH] apply cargo fmt --- vm/src/stdlib/math.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/src/stdlib/math.rs b/vm/src/stdlib/math.rs index 01825d60d..5347237c8 100644 --- a/vm/src/stdlib/math.rs +++ b/vm/src/stdlib/math.rs @@ -134,7 +134,7 @@ make_math_func!(math_log10, log10); fn math_pow(x: IntoPyFloat, y: IntoPyFloat, vm: &VirtualMachine) -> PyResult { let x = x.to_f64(); let y = y.to_f64(); - + if x < 0.0 && x.is_finite() && y.fract() != 0.0 && y.is_finite() { return Err(vm.new_value_error("math domain error".to_owned())); }