app: clear the clippy warnings and the vendored ones

Our crate is warning-free under `cargo clippy --all-targets`. The two
vendored crates warned about an unreachable expression and a qualified
path; both are silenced at their crate root so a normal build prints
nothing.
This commit is contained in:
vhaudiquet committed 2026-11-15 23:09:15 +01:00
1 parent 744aa20496
commit 01a92f1edf
8 files changed
+31 -46

No files matched your search

+4 -4
View File
@@ -73,7 +73,7 @@ impl Form {
}
/// Pull the text fields into the draft and hand it to `updateSettings`.
pub fn to_settings(&mut self) -> Settings {
pub fn settings(&mut self) -> Settings {
let mut out = self.draft.clone();
out.output.path = self.path.text.trim().to_string();
out.output.naming_pattern = self.naming.text.trim().to_string();
@@ -170,7 +170,7 @@ fn text_row(
)
}
/// A row with a dropdown on the right.
#[allow(clippy::too_many_arguments)] // the columns of a settings row
fn select_row(
p: Paint,
kit: &rune_kit::Kit,
@@ -270,7 +270,7 @@ pub fn view(app: &App, p: Paint) -> El {
text(save_label(app))
.key("save-label")
.font(body(11.5))
.color(if app.form.dirty { p.muted() } else { p.muted() }),
.color(p.muted()),
),
)
.child(ui::button(p, "revert", "Revert", false, |app: &mut App| {
@@ -283,7 +283,7 @@ pub fn view(app: &App, p: Paint) -> El {
if !app.form.loaded {
return;
}
let settings = app.form.to_settings();
let settings = app.form.settings();
match serde_json::to_value(&settings) {
Ok(value) => app.daemon.save_settings(value),
Err(e) => {