Apply clippy

This commit is contained in:
johan.park
2019-09-22 16:27:38 +09:00
parent db10a82cbe
commit 040c290a6e

View File

@@ -43,7 +43,7 @@ make_math_func_bool!(math_isnan, is_nan);
fn math_copysign(a: IntoPyFloat, b: IntoPyFloat, _vm: &VirtualMachine) -> f64 {
let a = a.to_f64();
let b = b.to_f64();
if a.is_nan() || b.is_nan(){
if a.is_nan() || b.is_nan() {
a
} else {
a.copysign(b)