1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-20 03:37:47 +00:00

More small warning changes

This commit is contained in:
Joshua Goins 2022-10-13 16:11:20 -04:00
parent 04b06fe0fc
commit c3c3df7c68
3 changed files with 4 additions and 4 deletions

View file

@ -424,7 +424,7 @@ impl DatFile {
self.file.seek(SeekFrom::Start(original_pos)).ok()?; 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; running_block_total += i16::read_options(&mut self.file, &options, ()).ok()? as u64;
} }
} }

View file

@ -407,7 +407,7 @@ impl MDL {
)) ))
.ok()?; .ok()?;
let mut options = ReadOptions::new(Endian::Little); let options = ReadOptions::new(Endian::Little);
match element.vertex_usage { match element.vertex_usage {
VertexUsage::Position => { VertexUsage::Position => {
@ -461,7 +461,7 @@ impl MDL {
let mut indices: Vec<u16> = let mut indices: Vec<u16> =
Vec::with_capacity(model.meshes[j as usize].index_count as usize); Vec::with_capacity(model.meshes[j as usize].index_count as usize);
for _ in 0..model.meshes[j as usize].index_count { 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(<u16 as BinRead>::read_options(&mut cursor, &options, ()).unwrap()); indices.push(<u16 as BinRead>::read_options(&mut cursor, &options, ()).unwrap());
} }

View file

@ -4,7 +4,7 @@ use std::env;
use std::process::Command; use std::process::Command;
use physis::installer::install_game; use physis::installer::install_game;
use physis::patch::apply_patch; use physis::patch::apply_patch;
use walkdir::{DirEntry, WalkDir}; use walkdir::WalkDir;
#[test] #[test]
#[cfg_attr(not(feature = "retail_game_testing"), ignore)] #[cfg_attr(not(feature = "retail_game_testing"), ignore)]