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

+11 -10
View File
@@ -100,17 +100,18 @@ pub fn tick(app: &mut App, tx: &mut Tx) -> bool {
app.review.time = time;
changed = true;
}
if let Some(duration) = player.duration() {
if duration > 0.0 && (duration - app.review.duration).abs() > 0.05 {
app.review.duration = duration;
changed = true;
}
if let Some(duration) = player.duration()
&& duration > 0.0
&& (duration - app.review.duration).abs() > 0.05
{
app.review.duration = duration;
changed = true;
}
if app.review.error.is_none() {
if let rune::PlayerState::Failed(message) = player.state() {
app.review.error = Some(message);
changed = true;
}
if app.review.error.is_none()
&& let rune::PlayerState::Failed(message) = player.state()
{
app.review.error = Some(message);
changed = true;
}
if player.is_playing() {
tx.wake_after(std::time::Duration::from_millis(33));
+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) => {