forked from Rust-related/RustPython
Apply clippy
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user