Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry Hardee committed Jul 15, 2019
1 parent 8adbf7f commit 8a8eedf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions clippy_lints/src/misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
false
return is_float(cx, &expressions[0]);
}
}
false
}

fn is_float(cx: &LateContext<'_, '_>, expr: &Expr) -> bool {
Expand Down

0 comments on commit 8a8eedf

Please sign in to comment.