mirror of
https://github.com/redstrate/Physis.git
synced 2025-06-07 23:27:45 +00:00
Fix some lint issues
This commit is contained in:
parent
dc3e6830c2
commit
86c8d6a122
2 changed files with 3 additions and 2 deletions
|
@ -4,7 +4,6 @@
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::io::{BufRead, BufReader, BufWriter, Cursor, Write};
|
use std::io::{BufRead, BufReader, BufWriter, Cursor, Write};
|
||||||
|
|
||||||
use crate::cfg;
|
|
||||||
use crate::gamedata::MemoryBuffer;
|
use crate::gamedata::MemoryBuffer;
|
||||||
|
|
||||||
/// Represents a collection of keys, mapped to their values.
|
/// Represents a collection of keys, mapped to their values.
|
||||||
|
@ -48,7 +47,7 @@ impl ConfigFile {
|
||||||
cfg.categories.push(String::from(name));
|
cfg.categories.push(String::from(name));
|
||||||
} else {
|
} else {
|
||||||
let parts = unwrap.split_once('\t').unwrap();
|
let parts = unwrap.split_once('\t').unwrap();
|
||||||
cfg.settings.entry(current_category.clone().unwrap()).or_insert_with(|| cfg::ConfigMap{ keys: HashMap::new() });
|
cfg.settings.entry(current_category.clone().unwrap()).or_insert_with(|| ConfigMap{ keys: HashMap::new() });
|
||||||
|
|
||||||
cfg.settings.get_mut(¤t_category.clone().unwrap()).unwrap().keys.insert(parts.0.to_string(), parts.1.to_string());
|
cfg.settings.get_mut(¤t_category.clone().unwrap()).unwrap().keys.insert(parts.0.to_string(), parts.1.to_string());
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,6 +64,8 @@ mod flate2_zallocation {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn no_header_decompress(in_data: &mut [u8], out_data: &mut [u8]) -> bool {
|
pub fn no_header_decompress(in_data: &mut [u8], out_data: &mut [u8]) -> bool {
|
||||||
|
// thanks for not somehow detecting this?
|
||||||
|
#[allow(unused_imports)]
|
||||||
use crate::compression::flate2_zallocation::{zalloc, zfree};
|
use crate::compression::flate2_zallocation::{zalloc, zfree};
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|
Loading…
Add table
Reference in a new issue