From c3c3df7c6865af6e0134a90323a7b1f7c8bfb54d Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 13 Oct 2022 16:11:20 -0400 Subject: [PATCH] More small warning changes --- src/dat.rs | 2 +- src/model.rs | 4 ++-- tests/integration_test.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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)]