Skip to content

Commit 4532dd9

Browse files
committed
run cargo fmt
1 parent 4cf5b5f commit 4532dd9

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

clippy_lints/src/len_zero.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ declare_clippy_lint! {
105105
"checking `x == \"\"` or `x == []` (or similar) when `.is_empty()` could be used instead"
106106
}
107107

108-
109108
declare_lint_pass!(LenZero => [LEN_ZERO, LEN_WITHOUT_IS_EMPTY, COMPARISON_TO_EMPTY]);
110109

111110
impl<'tcx> LateLintPass<'tcx> for LenZero {
@@ -298,13 +297,7 @@ fn check_len(
298297
}
299298
}
300299

301-
fn check_empty_expr(
302-
cx: &LateContext<'_>,
303-
span: Span,
304-
lit1: &Expr<'_>,
305-
lit2: &Expr<'_>,
306-
op: &str
307-
) {
300+
fn check_empty_expr(cx: &LateContext<'_>, span: Span, lit1: &Expr<'_>, lit2: &Expr<'_>, op: &str) {
308301
if (is_empty_array(lit2) || is_empty_string(lit2)) && has_is_empty(cx, lit1) {
309302
let mut applicability = Applicability::MachineApplicable;
310303
span_lint_and_sugg(

0 commit comments

Comments
 (0)