From f2b53085201883d1faa2095a5f4f5d3981bfcfc7 Mon Sep 17 00:00:00 2001 From: Alexey Dubovskoy Date: Tue, 14 Jul 2026 11:12:34 +0100 Subject: [PATCH] fix: satisfy clippy::useless_borrows_in_formatting Rust 1.97 added useless_borrows_in_formatting, which fires on two existing sites. CI installs stable and runs clippy with -D warnings, so main goes red on the next run through no change of its own. Drop the redundant references. No behaviour change - Display and Debug are implemented for both the value and the reference. --- src/server/mod.rs | 2 +- src/util/cooklang_to_cooklang.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/mod.rs b/src/server/mod.rs index 413d311b..46a61fce 100644 --- a/src/server/mod.rs +++ b/src/server/mod.rs @@ -176,7 +176,7 @@ pub async fn run(ctx: Context, args: ServerArgs) -> Result<()> { ); } - println!("Serving recipe files from: {:?}", &state.base_path); + println!("Serving recipe files from: {:?}", state.base_path); // Maximum request body size: 1MB (reasonable for recipe files) const MAX_BODY_SIZE: usize = 1024 * 1024; diff --git a/src/util/cooklang_to_cooklang.rs b/src/util/cooklang_to_cooklang.rs index 9554f75a..137631fb 100644 --- a/src/util/cooklang_to_cooklang.rs +++ b/src/util/cooklang_to_cooklang.rs @@ -115,7 +115,7 @@ fn w_step(w: &mut impl io::Write, step: &Step, recipe: &Recipe) -> Result<()> { sep, reference.components.join(&sep), sep, - &igr.name + igr.name ) } else { igr.name.clone()