From a3dca85cddef6d91708ffea25d400c7299dfcd83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Krawiec?= Date: Thu, 7 Sep 2023 20:34:25 +0200 Subject: [PATCH] fixed check_mime_type usage --- src/commands/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/mod.rs b/src/commands/mod.rs index 2d74140..e5be233 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -137,13 +137,13 @@ pub fn run( } } else { for path in files.iter() { - let (path, mut file_formats) = extension::separate_known_extensions_from_name(path); + let (pathbase, mut file_formats) = extension::separate_known_extensions_from_name(path); if let ControlFlow::Break(_) = check::check_mime_type(path, &mut file_formats, question_policy)? { return Ok(()); } - output_paths.push(path); + output_paths.push(pathbase); formats.push(file_formats); } }