diff --git a/src/main.rs b/src/main.rs index b0da7ea..b78ecaa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -106,7 +106,7 @@ impl KeywordType { } } -fn parse_file(file: impl io::Read) -> Result> { +fn parse_file(file: impl io::Read) -> Result> { let buf = io::BufReader::new(file); let reader = TextReader::new(buf, KOI8_R, DecoderTrap::Ignore); @@ -262,14 +262,14 @@ fn process_files(files: &&[PathBuf]) { }); } -fn main() -> Result<(), Box> { +fn main() -> Result<(), Box> { // open archive just to list files let zip_file = fs::File::open(BASE_FILENAME)?; let zip_reader = io::BufReader::new(zip_file); let mut archive = zip::ZipArchive::new(zip_reader)?; let source_files: Vec = (0..archive.len()) - .map(|i| archive.by_index(i).unwrap().sanitized_name()) + .map(|i| archive.by_index(i).unwrap().mangled_name()) .filter(|name| { // skip files without "txt" extension match name.extension() {