about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUrcra <urcra@urcra.com>2020-10-26 01:55:44 +0100
committerUrcra <urcra@urcra.com>2020-10-26 01:55:44 +0100
commit45aa3ef8dde9741c82bd3c98405d0b0464a8b79f (patch)
treeddb3bb4bb5b804bcd99e15c70e0eeba22d832ad5
parent4532dd9e431e3df719941514ef2a3dbce7fff962 (diff)
downloadrust-45aa3ef8dde9741c82bd3c98405d0b0464a8b79f.tar.gz
rust-45aa3ef8dde9741c82bd3c98405d0b0464a8b79f.zip
Remove unnecesary format
-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 542b4afcdf9..d0e7dea4a54 100644
--- a/clippy_lints/src/len_zero.rs
+++ b/clippy_lints/src/len_zero.rs
@@ -304,7 +304,7 @@ fn check_empty_expr(cx: &LateContext<'_>, span: Span, lit1: &Expr<'_>, lit2: &Ex
             cx,
             COMPARISON_TO_EMPTY,
             span,
-            &format!("comparison to empty slice"),
+            "comparison to empty slice",
             &format!("using `{}is_empty` is clearer and more explicit", op),
             format!(
                 "{}{}.is_empty()",