diff --git a/src/dat.rs b/src/dat.rs index 3b66464..cb9aa88 100755 --- a/src/dat.rs +++ b/src/dat.rs @@ -424,7 +424,7 @@ impl DatFile { self.file.seek(SeekFrom::Start(original_pos)).ok()?; - let mut options = ReadOptions::new(Endian::Little); + let options = ReadOptions::new(Endian::Little); running_block_total += i16::read_options(&mut self.file, &options, ()).ok()? as u64; } } diff --git a/src/model.rs b/src/model.rs index 625fb23..6d798d5 100755 --- a/src/model.rs +++ b/src/model.rs @@ -407,7 +407,7 @@ impl MDL { )) .ok()?; - let mut options = ReadOptions::new(Endian::Little); + let options = ReadOptions::new(Endian::Little); match element.vertex_usage { VertexUsage::Position => { @@ -461,7 +461,7 @@ impl MDL { let mut indices: Vec = Vec::with_capacity(model.meshes[j as usize].index_count as usize); for _ in 0..model.meshes[j as usize].index_count { - let mut options = ReadOptions::new(Endian::Little); + let options = ReadOptions::new(Endian::Little); indices.push(::read_options(&mut cursor, &options, ()).unwrap()); } diff --git a/tests/integration_test.rs b/tests/integration_test.rs index 7f43faa..4da6aa8 100755 --- a/tests/integration_test.rs +++ b/tests/integration_test.rs @@ -4,7 +4,7 @@ use std::env; use std::process::Command; use physis::installer::install_game; use physis::patch::apply_patch; -use walkdir::{DirEntry, WalkDir}; +use walkdir::WalkDir; #[test] #[cfg_attr(not(feature = "retail_game_testing"), ignore)]