diff --git a/src/cfg.rs b/src/cfg.rs index 405532d..e8841b6 100644 --- a/src/cfg.rs +++ b/src/cfg.rs @@ -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(¤t_category.clone().unwrap()).unwrap().keys.insert(parts.0.to_string(), parts.1.to_string()); } diff --git a/src/compression.rs b/src/compression.rs index e39c355..f01482e 100755 --- a/src/compression.rs +++ b/src/compression.rs @@ -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 {