diff --git a/src/audio/mod.rs b/src/audio/mod.rs index 7d7cdba3..25826cad 100644 --- a/src/audio/mod.rs +++ b/src/audio/mod.rs @@ -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, diff --git a/src/filesystem/project.rs b/src/filesystem/project.rs index 18910138..74a7eaef 100644 --- a/src/filesystem/project.rs +++ b/src/filesystem/project.rs @@ -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())?; @@ -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())?;