From 2d467dca62917b9b29b8739fb1a0509262aeca63 Mon Sep 17 00:00:00 2001 From: chansuke Date: Mon, 29 Jul 2019 23:42:33 +0900 Subject: [PATCH] Add required negation in non_zero lint --- clippy_lints/src/len_zero.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,