mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
Lint
This commit is contained in:
parent
8adbf7f2c1
commit
8a8eedf388
1 changed files with 2 additions and 4 deletions
|
@ -511,13 +511,11 @@ fn is_signum(cx: &LateContext<'_, '_>, expr: &Expr) -> bool {
|
|||
if sym!(signum) == method_name.ident.name;
|
||||
// Check that the receiver of the signum() is a float (expressions[0] is the receiver of
|
||||
// the method call)
|
||||
if is_float(cx, &expressions[0]);
|
||||
then {
|
||||
true
|
||||
} else {
|
||||
return is_float(cx, &expressions[0]);
|
||||
}
|
||||
}
|
||||
false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn is_float(cx: &LateContext<'_, '_>, expr: &Expr) -> bool {
|
||||
|
|
Loading…
Reference in a new issue