mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
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:
co-authored by
Guy Chronister
parent
6bc3908fe2
commit
f19bf2e30f
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user