From b7fc64a3a5e3b69668972212ad3541dc2d0f0ba6 Mon Sep 17 00:00:00 2001 From: Vladimir Rubin Date: Mon, 30 Dec 2024 16:28:55 +0200 Subject: [PATCH] refactor(sorting): replace a lot of ifs with an array --- src/main.rs | 61 +++++++++++++++++++++++++---------------------------- 1 file changed, 29 insertions(+), 32 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8ab1d02..29c7eab 100644 --- a/src/main.rs +++ b/src/main.rs @@ -119,42 +119,39 @@ fn sort_files(selection: String, _recursive: bool) -> Result<(), Box