chore(lint): 修复 rust-1.97 clippy useless_borrows_in_formatting 告警
Some checks failed
CI / check (push) Has been cancelled
CI / build (push) Has been cancelled

新版 clippy 在 format! 参数的冗余 & 上新增 lint(与 mimalloc 改动无关),
移除 export.rs 的 &table_name 以保持 make lint 零告警。
This commit is contained in:
xfy 2026-07-16 10:53:59 +08:00
parent 5b183007a7
commit c2263e6bf1

View File

@ -170,7 +170,7 @@ async fn export_sql(
let vals: Vec<String> = (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(", ")
));