From 234df3f92333644a4dcdfaaa7da004d9a247f31f Mon Sep 17 00:00:00 2001 From: "dobby-yivi-agent[bot]" <275734547+dobby-yivi-agent[bot]@users.noreply.github.com> Date: Fri, 1 May 2026 07:58:35 +0000 Subject: [PATCH] chore: fix clippy useless_format warning in email.rs `format!("{}", &sender)` allocated a String just to borrow it as &str into url::form_urlencoded::Serializer::append_pair, which takes &str. Pass &sender directly. Step 2 of the CI bring-up sequence in #126: clippy must pass cleanly before a clippy job can be added in CI. Refs: #126 --- src/email.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/email.rs b/src/email.rs index 83470ef..f55bb87 100644 --- a/src/email.rs +++ b/src/email.rs @@ -250,7 +250,7 @@ pub async fn send_email( let mut url = base.join("/download")?; url.query_pairs_mut() .append_pair("uuid", uuid) - .append_pair("recipient", &format!("{}", &sender)); + .append_pair("recipient", &sender); let (email, subject) = email_confirm(state, url.as_str()); let email = Message::builder()