mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-23 13:17:44 +00:00
Fix some small warnings
This commit is contained in:
parent
6da9057d1e
commit
5082fee083
3 changed files with 1 additions and 10 deletions
|
@ -1,8 +1,7 @@
|
|||
use crate::gamedata::MemoryBuffer;
|
||||
use crate::sha1::Sha1;
|
||||
use binrw::BinRead;
|
||||
use binrw::{binrw, BinrwNamedArgs, NullString};
|
||||
use std::ffi::CStr;
|
||||
use binrw::binrw;
|
||||
use std::fs::read;
|
||||
use std::io::Cursor;
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@ use crate::common::read_version;
|
|||
use crate::repository::RepositoryType::{Base, Expansion};
|
||||
use std::cmp::Ordering;
|
||||
use std::cmp::Ordering::{Greater, Less};
|
||||
use std::fs;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
/// The type of repository, discerning game data from expansion data.
|
||||
|
|
|
@ -241,13 +241,6 @@ impl Sha1 {
|
|||
rv
|
||||
}
|
||||
|
||||
/// Resets the hash object to it's initial state.
|
||||
pub fn reset(&mut self) {
|
||||
self.state = DEFAULT_STATE;
|
||||
self.len = 0;
|
||||
self.blocks.len = 0;
|
||||
}
|
||||
|
||||
/// Update hash with input data.
|
||||
pub fn update(&mut self, data: &[u8]) {
|
||||
let len = &mut self.len;
|
||||
|
|
Loading…
Add table
Reference in a new issue