]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/methods/suspicious_splitn.rs
Rollup merge of #105829 - the8472:tidy-style, r=jyn514
[rust.git] / src / tools / clippy / clippy_lints / src / methods / suspicious_splitn.rs
index 55567d8625e529dfc541d3bf937284c130a9e516..219a9edd65768eeb3124f3c174375e5fce335058 100644 (file)
@@ -24,10 +24,10 @@ pub(super) fn check(cx: &LateContext<'_>, method_name: &str, expr: &Expr<'_>, se
             }
 
             let (msg, note_msg) = if count == 0 {
-                (format!("`{}` called with `0` splits", method_name),
+                (format!("`{method_name}` called with `0` splits"),
                 "the resulting iterator will always return `None`")
             } else {
-                (format!("`{}` called with `1` split", method_name),
+                (format!("`{method_name}` called with `1` split"),
                 if self_ty.is_slice() {
                     "the resulting iterator will always return the entire slice followed by `None`"
                 } else {