about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUrcra <urcra@urcra.com>2020-10-26 01:02:10 +0100
committerUrcra <urcra@urcra.com>2020-10-26 01:02:10 +0100
commitdeecfb5d13325d05842fb610a7ef506be4ac6175 (patch)
tree5ea30415ee10c29fe3bb1700fe5819fde25ad371
parent4417af801d8a9cd06da2d1986d8a808dea2d8233 (diff)
downloadrust-deecfb5d13325d05842fb610a7ef506be4ac6175.tar.gz
rust-deecfb5d13325d05842fb610a7ef506be4ac6175.zip
Add description to lint
-rw-r--r--clippy_lints/src/len_zero.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/len_zero.rs b/clippy_lints/src/len_zero.rs
index 75e9c5c973b..9eba3750d2a 100644
--- a/clippy_lints/src/len_zero.rs
+++ b/clippy_lints/src/len_zero.rs
@@ -102,7 +102,7 @@ declare_clippy_lint! {
     /// ```
     pub COMPARISON_TO_EMPTY,
     style,
-    "default lint description"
+    "checking `x == \"\"` or `x == []` (or similar) when `.is_empty()` could be used instead"
 }