unidiomatic if_chain!
This commit is contained in:
parent
04b7cae37e
commit
80ae1ec12d
@ -105,12 +105,11 @@ impl LateLintPass<'_> for EndianBytes {
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if_chain! {
|
||||
if let ExprKind::Call(function, ..) = expr.kind;
|
||||
|
Loading…
x
Reference in New Issue
Block a user