chore(m197): 清掉 clippy 的三处拒绝 + 一处 2018 idioms 警告

CI 的门禁是 `cargo clippy --workspace --all-targets -- -D warnings`:
冗余闭包 / 用例表的类型复杂度 / Default 之后逐字段赋值 / elided lifetime 四处都会红。
纯实现侧改动,行为不变(757 + 31 全绿)。
This commit is contained in:
AskaEth committed 2026-11-08 20:57:23 +08:00
1 parent ce463cc9b5
commit 9a7b138d08
3 files changed
+11 -6

No files matched your search

@@ -235,7 +235,10 @@ fn every_download_template_renders_without_leftover_placeholders() {
use unlucky_i18n::{Key, Lang};
let catalog = Lang::En.catalog();
let cases: [(&str, Key, &[(&str, &str)]); 6] = [
/// 一条用例:标签 / key / 渲染参数。
type Case<'a> = (&'a str, Key, &'a [(&'a str, &'a str)]);
let cases: [Case<'_>; 6] = [
(
"failed",
Key::SettingsJavaDownloadFailed,