mirror of
https://github.com/Tribufu/rust-gamedig
synced 2026-08-20 04:11:06 +00:00
[Protocol] Apply many nursery clippy lints
This commit is contained in:
parent
c4097fae78
commit
f50c50f0f1
21 changed files with 166 additions and 178 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue