settings_side 不必公開:它收的 SettingsTab 只在 app 裡看得到,clippy 報「型別比函式更私有」(上一個 commit 讓錯誤數從 12 變 13)。改成私有,只有 app.rs 自己用。
已驗證: clippy 錯誤數回到 12(都在沒動的檔);cargo test app:: 全綠(163)。 未驗證: — Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Uirha2uBHmbnuWBhNzjbJm
This commit is contained in:
parent
69563fc21d
commit
83096d146f
|
|
@ -5429,7 +5429,7 @@ impl App {
|
||||||
/// stays on each computer (mirror_ui's LOCAL_KEYS / copy_own: the account, the look, the
|
/// stays on each computer (mirror_ui's LOCAL_KEYS / copy_own: the account, the look, the
|
||||||
/// rules for running on this computer) and what is the brain's (everything else). Nothing on a
|
/// rules for running on this computer) and what is the brain's (everything else). Nothing on a
|
||||||
/// brain itself (all of it is this computer's), nor where it isn't plain (保險庫).
|
/// brain itself (all of it is this computer's), nor where it isn't plain (保險庫).
|
||||||
pub(super) fn settings_side(&self, tab: SettingsTab) -> Option<(String, String)> {
|
fn settings_side(&self, tab: SettingsTab) -> Option<(String, String)> {
|
||||||
let brain = self.brain_for_words()?;
|
let brain = self.brain_for_words()?;
|
||||||
let mine = t("這台電腦");
|
let mine = t("這台電腦");
|
||||||
let theirs = format!("{}「{brain}」", t("大腦"));
|
let theirs = format!("{}「{brain}」", t("大腦"));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue