Skip to content

Commit 45aa3ef

Browse files
committed
Remove unnecesary format
1 parent 4532dd9 commit 45aa3ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/len_zero.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ fn check_empty_expr(cx: &LateContext<'_>, span: Span, lit1: &Expr<'_>, lit2: &Ex
304304
cx,
305305
COMPARISON_TO_EMPTY,
306306
span,
307-
&format!("comparison to empty slice"),
307+
"comparison to empty slice",
308308
&format!("using `{}is_empty` is clearer and more explicit", op),
309309
format!(
310310
"{}{}.is_empty()",

0 commit comments

Comments
 (0)