unidiomatic if_chain!
This commit is contained in:
parent
04b7cae37e
commit
80ae1ec12d
@ -105,10 +105,9 @@ fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) {
|
||||
if args.is_empty();
|
||||
let ty = cx.typeck_results().expr_ty(receiver);
|
||||
if ty.is_primitive_ty();
|
||||
if try_lint_endian_bytes(cx, expr, "to", method_name.ident.name, ty);
|
||||
then {
|
||||
if try_lint_endian_bytes(cx, expr, "to", method_name.ident.name, ty) {
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user