about summary refs log tree commit diff
path: root/clippy_lints/src/methods/single_char_push_string.rs
diff options
context:
space:
mode:
authorYuri Astrakhan <YuriAstrakhan@gmail.com>2022-09-23 13:42:59 -0400
committerYuri Astrakhan <YuriAstrakhan@gmail.com>2022-09-23 13:42:59 -0400
commite67b2bf732876eeb26e0d2fbc4b6c55e1a9f9317 (patch)
tree31ace4c422c55a2e52e4c9daaa8df276a341dfd2 /clippy_lints/src/methods/single_char_push_string.rs
parentff65eec80194143a52b3433ff3b98437e130b75d (diff)
downloadrust-e67b2bf732876eeb26e0d2fbc4b6c55e1a9f9317.tar.gz
rust-e67b2bf732876eeb26e0d2fbc4b6c55e1a9f9317.zip
Apply uninlined_format-args to clippy_lints
This change is needed for the uninlined_format-args lint to be merged.
See https://github.com/rust-lang/rust-clippy/pull/9233
Diffstat (limited to 'clippy_lints/src/methods/single_char_push_string.rs')
-rw-r--r--clippy_lints/src/methods/single_char_push_string.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/methods/single_char_push_string.rs b/clippy_lints/src/methods/single_char_push_string.rs
index 9ea6751956a..0698bd6a0c5 100644
--- a/clippy_lints/src/methods/single_char_push_string.rs
+++ b/clippy_lints/src/methods/single_char_push_string.rs
@@ -13,7 +13,7 @@ pub(super) fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>, receiver: &hir::
     if let Some(extension_string) = get_hint_if_single_char_arg(cx, &args[0], &mut applicability) {
         let base_string_snippet =
             snippet_with_applicability(cx, receiver.span.source_callsite(), "..", &mut applicability);
-        let sugg = format!("{}.push({})", base_string_snippet, extension_string);
+        let sugg = format!("{base_string_snippet}.push({extension_string})");
         span_lint_and_sugg(
             cx,
             SINGLE_CHAR_ADD_STR,