Zero warnings on Windows and Linux, clippy included (W-02, L-02)

rustc and clippy are clean for the whole workspace, every target, on
both. clippy --fix moved test modules last and took the shorter
forms; long types got named aliases; ElyTree's form takes its title
and button words as one pair.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-10 18:36:06 -04:00
1 parent c96d39a342
commit 9c9f9ab8f9
26 files changed
+73 -60

No files matched your search

+4 -6
View File
@@ -251,8 +251,7 @@ impl Tree {
let (title, go) = (label("tree.branch.title"), label("tree.branch.create"));
Some(self.form(
"tree-new-branch",
title,
go,
(title, go),
rows,
Some(toggle.into_any_element()),
dismiss,
@@ -271,7 +270,7 @@ impl Tree {
div().w_full().child(Input::new(message)),
);
let (title, go) = (label("tree.tag.title"), label("tree.tag.create"));
Some(self.form("tree-new-tag", title, go, rows, None, dismiss, cx))
Some(self.form("tree-new-tag", (title, go), rows, None, dismiss, cx))
}
Ask::Rename { old, name, .. } => {
let label = |key: &str| text(cx, key, &[]);
@@ -283,7 +282,7 @@ impl Tree {
text(cx, "tree.rename.title", &[("name", old)]),
label("tree.rename.go"),
);
Some(self.form("tree-rename", title, go, rows, None, dismiss, cx))
Some(self.form("tree-rename", (title, go), rows, None, dismiss, cx))
}
Ask::Stash { .. }
| Ask::Remote { .. }
@@ -347,8 +346,7 @@ impl Tree {
pub(crate) fn form(
&self,
id: &'static str,
title: gpui::SharedString,
go: gpui::SharedString,
(title, go): (gpui::SharedString, gpui::SharedString),
rows: DescriptionList,
extra: Option<AnyElement>,
dismiss: impl Fn(&mut Window, &mut App) + 'static,