unidiomatic if_chain!

This commit is contained in:
Centri3 2023-05-25 11:43:14 -05:00
parent 04b7cae37e
commit 80ae1ec12d

View File

@ -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;
}
}