1
Fork 0
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:
Joshua Goins 2023-09-24 15:41:05 -04:00
parent dc3e6830c2
commit 86c8d6a122
2 changed files with 3 additions and 2 deletions

View file

@ -4,7 +4,6 @@
use std::collections::HashMap;
use std::io::{BufRead, BufReader, BufWriter, Cursor, Write};
use crate::cfg;
use crate::gamedata::MemoryBuffer;
/// Represents a collection of keys, mapped to their values.
@ -48,7 +47,7 @@ impl ConfigFile {
cfg.categories.push(String::from(name));
} else {
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(&current_category.clone().unwrap()).unwrap().keys.insert(parts.0.to_string(), parts.1.to_string());
}

View file

@ -64,6 +64,8 @@ mod flate2_zallocation {
}
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};
unsafe {