Skip to content

Commit

Permalink
Apply clippy recommendations
Browse files Browse the repository at this point in the history
  • Loading branch information
white-axe committed Oct 10, 2023
1 parent 02eab49 commit dd88bda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/audio/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl Audio {

fn play_from_file(
&self,
mut file: impl Read + Seek + Send + Sync + 'static,
file: impl Read + Seek + Send + Sync + 'static,
is_midi: bool,
volume: u8,
pitch: u8,
Expand Down
4 changes: 2 additions & 2 deletions src/filesystem/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ impl FileSystem {
.map(|entry| dir.open_file(entry.path, OpenFlags::Read | OpenFlags::Write))
.transpose()
.map_err(|e| e.to_string())?
.map(|file| archiver::FileSystem::new(file))
.map(archiver::FileSystem::new)
.transpose()
.map_err(|e| e.to_string())?;

Expand Down Expand Up @@ -426,7 +426,7 @@ impl FileSystem {
.map(|entry| dir.open_file(entry.path, OpenFlags::Read | OpenFlags::Write))
.transpose()
.map_err(|e| e.to_string())?
.map(|file| archiver::FileSystem::new(file))
.map(archiver::FileSystem::new)
.transpose()
.map_err(|e| e.to_string())?;

Expand Down

0 comments on commit dd88bda

Please sign in to comment.