Fix clippy warnings and typos (#434)

* Fix clippy warnings.

* Fixe more clippy warnings.

* Fix exided lifetime warnings in clippy.

* Fix errors.

* Fix errors.

---------

Co-authored-by: Guy Chronister <guyc.linux.patches@gmail.com>
This commit is contained in:
guylamar2006
2025-01-12 21:29:42 +01:00
committed by GitHub
co-authored by Guy Chronister
parent 6bc3908fe2
commit f19bf2e30f
18 changed files with 55 additions and 64 deletions
+1 -5
View File
@@ -1,11 +1,7 @@
use super::lutris_game::LutrisGame;
pub fn parse_lutris_games(input: &str) -> Vec<LutrisGame> {
let games = serde_json::from_str::<Vec<LutrisGame>>(input);
match games {
Ok(games) => games,
Err(_err) => Vec::new(),
}
serde_json::from_str::<Vec<LutrisGame>>(input).unwrap_or_default()
}
#[cfg(test)]