From d8554e30029bf43dccce72e982784cd01857b0c4 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Thu, 25 May 2023 22:48:54 +0200 Subject: added mod add progress --- src/db.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/db.rs') diff --git a/src/db.rs b/src/db.rs index 22085a5..1f3ad4c 100644 --- a/src/db.rs +++ b/src/db.rs @@ -525,7 +525,7 @@ pub fn lists_remove(config: &Cfg, id: String) -> MLE<()> { Ok(()) } -pub fn lists_get(config: &Cfg, list_id: String) -> MLE { +pub fn lists_get(config: &Cfg, list_id: &str) -> MLE { let data = format!("{}/data.db", config.data); let connection = Connection::open(data).unwrap(); @@ -549,7 +549,7 @@ pub fn lists_get(config: &Cfg, list_id: String) -> MLE { for l in list_iter { let li = l?; list = List { - id: String::from(&list_id), + id: list_id.to_string(), mc_version: String::from(&li[0]), modloader: Modloader::from(&li[1])?, download_folder: String::from(&li[2]), -- cgit v1.2.3