diff options
Diffstat (limited to 'src/data/list.rs')
-rw-r--r-- | src/data/list.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data/list.rs b/src/data/list.rs index 0045b7a..b886af1 100644 --- a/src/data/list.rs +++ b/src/data/list.rs | |||
@@ -1,4 +1,4 @@ | |||
1 | use crate::{config::Cfg, db::{config_get_current_list, lists_get}, error::MLE}; | 1 | use crate::{config::Cfg, db::{config_get_current_list, lists_get}, errors::MLE}; |
2 | 2 | ||
3 | use super::modloader::Modloader; | 3 | use super::modloader::Modloader; |
4 | 4 | ||
@@ -14,6 +14,6 @@ impl List { | |||
14 | /// # Errors | 14 | /// # Errors |
15 | pub fn get_current_list(config: &Cfg) -> MLE<List> { | 15 | pub fn get_current_list(config: &Cfg) -> MLE<List> { |
16 | let id = config_get_current_list(config)?; | 16 | let id = config_get_current_list(config)?; |
17 | lists_get(config, &id) | 17 | Ok(lists_get(config, &id)?) |
18 | } | 18 | } |
19 | } | 19 | } |