diff options
Diffstat (limited to 'src/commands/io.rs')
-rw-r--r-- | src/commands/io.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/io.rs b/src/commands/io.rs index 44604d1..a3d056f 100644 --- a/src/commands/io.rs +++ b/src/commands/io.rs | |||
@@ -2,7 +2,7 @@ use std::fs::File; | |||
2 | use std::io::prelude::*; | 2 | use std::io::prelude::*; |
3 | use serde::{Serialize, Deserialize}; | 3 | use serde::{Serialize, Deserialize}; |
4 | 4 | ||
5 | use crate::{input::{Input, IoOptions}, db::{lists_get, userlist_get_all_ids, lists_get_all_ids, lists_insert}, config::Cfg, Modloader, List, devdir, error::MLE, mods_add}; | 5 | use crate::{input::{Input, IoOptions}, db::{lists_get, userlist_get_all_ids, lists_get_all_ids, lists_insert}, config::Cfg, Modloader, List, devdir, error::MLE, mods_add, IDSelector}; |
6 | 6 | ||
7 | #[derive(Debug, Serialize, Deserialize)] | 7 | #[derive(Debug, Serialize, Deserialize)] |
8 | struct Export { | 8 | struct Export { |
@@ -82,7 +82,7 @@ async fn import(config: Cfg, input: Input) -> MLE<()> { | |||
82 | let mods: Vec<&str> = exportlist.mods.split('|').collect(); | 82 | let mods: Vec<&str> = exportlist.mods.split('|').collect(); |
83 | let mut mod_ids = vec![]; | 83 | let mut mod_ids = vec![]; |
84 | for mod_id in mods { | 84 | for mod_id in mods { |
85 | mod_ids.push(String::from(mod_id)); | 85 | mod_ids.push(IDSelector::ModificationID(String::from(mod_id))); |
86 | }; | 86 | }; |
87 | //TODO impl set_version and good direct download | 87 | //TODO impl set_version and good direct download |
88 | //TODO impl all at once, dafuck | 88 | //TODO impl all at once, dafuck |