From 8fe328a6d860f6c071d9aee10eece29ae14a8923 Mon Sep 17 00:00:00 2001 From: AHQ Miness Date: Fri, 11 Oct 2024 12:07:11 +0530 Subject: [PATCH] no sort algo --- Cargo.toml | 1 - db/map/1.json | 2 +- db/search/1.json | 2 +- db/total | 1 - src/parser/mod.rs | 2 +- 5 files changed, 3 insertions(+), 5 deletions(-) delete mode 100644 db/total diff --git a/Cargo.toml b/Cargo.toml index 030464f9b..e8ba6401a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,5 +8,4 @@ edition = "2021" [dependencies] ahqstore-types = { version = "3" } serde_yml = "0.0.12" -sort_algorithms = "0.3.5" version-compare = "0.2.0" diff --git a/db/map/1.json b/db/map/1.json index 9e26dfeeb..81750b96f 100644 --- a/db/map/1.json +++ b/db/map/1.json @@ -1 +1 @@ -{} \ No newline at end of file +{ \ No newline at end of file diff --git a/db/search/1.json b/db/search/1.json index 0637a088a..8e2f0bef1 100644 --- a/db/search/1.json +++ b/db/search/1.json @@ -1 +1 @@ -[] \ No newline at end of file +[ \ No newline at end of file diff --git a/db/total b/db/total deleted file mode 100644 index 56a6051ca..000000000 --- a/db/total +++ /dev/null @@ -1 +0,0 @@ -1 \ No newline at end of file diff --git a/src/parser/mod.rs b/src/parser/mod.rs index e5cca724c..09fcb6c66 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -167,7 +167,7 @@ fn app_parse(letter: &str, author: &str, map: &mut Map) { use sort_algorithms::cocktail_shaker_sort; - cocktail_shaker_sort(&mut versions, |x, y| { + versions.sort_by(|x, y| { let (x, y) = (x.to_str().unwrap_or("0.0.0"), y.to_str().unwrap_or("0.0.0")); let x = Version::from(x).unwrap(); let y = Version::from(y).unwrap();