[Protocol] Apply many nursery clippy lints

This commit is contained in:
CosminPerRam 2023-08-17 22:37:17 +03:00
parent c4097fae78
commit f50c50f0f1
21 changed files with 166 additions and 178 deletions

View file

@ -29,8 +29,8 @@ impl TheShipPlayer {
name: player.name.clone(),
score: player.score,
duration: player.duration,
deaths: player.deaths.unwrap(),
money: player.money.unwrap(),
deaths: player.deaths.unwrap(), // TODO! Err here!
money: player.money.unwrap(), // TODO! Err here!
}
}
}
@ -93,7 +93,7 @@ impl Response {
pub fn new_from_valve_response(response: valve::Response) -> Self {
let (port, steam_id, tv_port, tv_name, keywords) = get_optional_extracted_data(response.info.extra_data);
let the_unwrapped_ship = response.info.the_ship.unwrap();
let the_unwrapped_ship = response.info.the_ship.unwrap(); // TODO! Err here!
Self {
protocol_version: response.info.protocol_version,