about summary refs log tree commit diff
path: root/clippy_lints/src/len_zero.rs
diff options
context:
space:
mode:
Diffstat (limited to 'clippy_lints/src/len_zero.rs')
-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 09cd0d22d8b..20e6220ec7d 100644
--- a/clippy_lints/src/len_zero.rs
+++ b/clippy_lints/src/len_zero.rs
@@ -441,7 +441,7 @@ fn is_empty_string(expr: &Expr<'_>) -> bool {
     if let ExprKind::Lit(ref lit) = expr.kind {
         if let LitKind::Str(lit, _) = lit.node {
             let lit = lit.as_str();
-            return lit == "";
+            return lit.is_empty();
         }
     }
     false