diff --git a/clippy_lints/src/len_zero.rs b/clippy_lints/src/len_zero.rs index be1c2a1128d3..ea302ed9fc9a 100644 --- a/clippy_lints/src/len_zero.rs +++ b/clippy_lints/src/len_zero.rs @@ -244,7 +244,7 @@ fn check_len( LEN_ZERO, span, &format!("length comparison to {}", if compare_to == 0 { "zero" } else { "one" }), - "using `is_empty` is clearer and more explicit", + &format!("using `{}is_empty` is clearer and more explicit", op), format!( "{}{}.is_empty()", op,