Skip to content

Commit

Permalink
cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
snendev committed Aug 22, 2024
1 parent efc0013 commit 86f3095
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/input_playback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ pub fn initiate_input_playback(
InputPlaybackSource::TimestampedInputs(inputs) => inputs.clone(),
InputPlaybackSource::File(playback_path) => {
commands.insert_resource(playback_path.clone());
deserialize_timestamped_inputs(&playback_path)
deserialize_timestamped_inputs(playback_path)
.unwrap()
.unwrap()
}
Expand Down Expand Up @@ -338,8 +338,8 @@ pub fn deserialize_timestamped_inputs(
playback_path: &PlaybackFilePath,
) -> Option<Result<TimestampedInputs, TimestampedInputsError>> {
playback_path.path().as_ref().map(|file_path| {
let file = File::open(file_path).map_err(|error| TimestampedInputsError::Fs(error))?;
from_reader(file).map_err(|error| TimestampedInputsError::Ron(error))
let file = File::open(file_path).map_err(TimestampedInputsError::Fs)?;
from_reader(file).map_err(TimestampedInputsError::Ron)
})
}

Expand Down

0 comments on commit 86f3095

Please sign in to comment.