From 47f570d5aefc19163e54575c81770c531610e977 Mon Sep 17 00:00:00 2001 From: xqqmdy Date: Fri, 30 Oct 2026 18:57:29 +0800 Subject: [PATCH] chore: drop redundant references in write! args clippy 1.99 (useless_borrows_in_formatting) denies these under -D warnings; local pre-push CI runs clippy with a newer toolchain than the one that last touched src/ui.rs, so the hook fails on main without this. --- src/ui.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui.rs b/src/ui.rs index 85df93e..791b65b 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -200,7 +200,7 @@ impl Theme for ConfirmTheme { write!( f, "{} {} ", - &self.base.prompt_prefix, + self.base.prompt_prefix, self.base.prompt_style.apply_to(prompt) )?; } @@ -220,7 +220,7 @@ impl Theme for ConfirmTheme { brackets.apply_to("/"), no, brackets.apply_to("]"), - &self.base.prompt_suffix + self.base.prompt_suffix ), Some(true) => write!( f, @@ -230,7 +230,7 @@ impl Theme for ConfirmTheme { brackets.apply_to("/"), no, brackets.apply_to("]"), - &self.base.prompt_suffix, + self.base.prompt_suffix, self.base.defaults_style.apply_to("yes") ), Some(false) => write!( @@ -241,7 +241,7 @@ impl Theme for ConfirmTheme { brackets.apply_to("/"), no_default, brackets.apply_to("]"), - &self.base.prompt_suffix, + self.base.prompt_suffix, self.base.defaults_style.apply_to("no") ), }