diff options
Diffstat (limited to 'src/db.rs')
-rw-r--r-- | src/db.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -525,7 +525,7 @@ pub fn lists_remove(config: &Cfg, id: String) -> MLE<()> { | |||
525 | Ok(()) | 525 | Ok(()) |
526 | } | 526 | } |
527 | 527 | ||
528 | pub fn lists_get(config: &Cfg, list_id: String) -> MLE<List> { | 528 | pub fn lists_get(config: &Cfg, list_id: &str) -> MLE<List> { |
529 | let data = format!("{}/data.db", config.data); | 529 | let data = format!("{}/data.db", config.data); |
530 | let connection = Connection::open(data).unwrap(); | 530 | let connection = Connection::open(data).unwrap(); |
531 | 531 | ||
@@ -549,7 +549,7 @@ pub fn lists_get(config: &Cfg, list_id: String) -> MLE<List> { | |||
549 | for l in list_iter { | 549 | for l in list_iter { |
550 | let li = l?; | 550 | let li = l?; |
551 | list = List { | 551 | list = List { |
552 | id: String::from(&list_id), | 552 | id: list_id.to_string(), |
553 | mc_version: String::from(&li[0]), | 553 | mc_version: String::from(&li[0]), |
554 | modloader: Modloader::from(&li[1])?, | 554 | modloader: Modloader::from(&li[1])?, |
555 | download_folder: String::from(&li[2]), | 555 | download_folder: String::from(&li[2]), |