From 63a3233e12efb0e426cb81ec1a52c1e42cc0d59f Mon Sep 17 00:00:00 2001 From: Dmitry Date: Mon, 15 Aug 2022 14:59:38 +0300 Subject: [PATCH] fix build error --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() {