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

+8 -13
View File
@@ -49,7 +49,7 @@ impl Status {
"recording" => "Recording".to_string(),
"error" => "Error".to_string(),
"shutting_down" => "Shutting down".to_string(),
other if other.is_empty() => "Unknown".to_string(),
"" => "Unknown".to_string(),
other => other.to_string(),
}
}
@@ -392,12 +392,10 @@ impl App {
self.notify_error(format!("Status did not parse: {e}"));
}
},
(ipc::Request::Status, Err(e)) => {
if self.connected {
self.connected = false;
self.notify_error(format!("Lost the record-daemon: {e}"));
self.refresh_games();
}
(ipc::Request::Status, Err(e)) if self.connected => {
self.connected = false;
self.notify_error(format!("Lost the record-daemon: {e}"));
self.refresh_games();
}
(ipc::Request::Encoders, Ok(data)) => {
if let Ok(list) = serde_json::from_value(data) {
@@ -451,11 +449,8 @@ impl App {
let mut tray_events = Vec::new();
if let Some(rx) = &self.tray_events {
loop {
match rx.try_recv() {
Ok(event) => tray_events.push(event),
Err(_) => break,
}
while let Ok(event) = rx.try_recv() {
tray_events.push(event);
}
}
for event in tray_events {
@@ -764,7 +759,7 @@ pub fn demo_review(app: &mut App) {
app.screen = Screen::Review;
app.review.game = app.games.first().map(|game| game.recording_id.clone());
app.review.error = Some("Sample recording: no clip on disk.".to_string());
if let Some(game) = app.games.get(0) {
if let Some(game) = app.games.first() {
app.review.highlights =
crate::highlight::compute(game, game.summoner().as_deref(), Default::default());
app.review.duration = game.duration_secs.max(0) as f64;