From c2263e6bf117a96d4e6c01424438dec21160f075 Mon Sep 17 00:00:00 2001 From: xfy Date: Thu, 16 Jul 2026 10:53:59 +0800 Subject: [PATCH] =?UTF-8?q?chore(lint):=20=E4=BF=AE=E5=A4=8D=20rust-1.97?= =?UTF-8?q?=20clippy=20useless=5Fborrows=5Fin=5Fformatting=20=E5=91=8A?= =?UTF-8?q?=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新版 clippy 在 format! 参数的冗余 & 上新增 lint(与 mimalloc 改动无关), 移除 export.rs 的 &table_name 以保持 make lint 零告警。 --- src/api/database/export.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/database/export.rs b/src/api/database/export.rs index eaa17a3..33bf487 100644 --- a/src/api/database/export.rs +++ b/src/api/database/export.rs @@ -170,7 +170,7 @@ async fn export_sql( let vals: Vec = (0..r.len()).map(|i| sql_quote_cell(r, i)).collect(); out.push_str(&format!( "INSERT INTO {} {} VALUES ({});\n", - &table_name, + table_name, col_clause, vals.join(", ") ));