diff options
Diffstat (limited to 'src/db.rs')
-rw-r--r-- | src/db.rs | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -7,8 +7,6 @@ use crate::{Modloader, config::Cfg, List, devdir, error::{MLE, MLError, ErrorTyp | |||
7 | //MODS | 7 | //MODS |
8 | pub fn mods_insert(config: Cfg, id: &str, slug: &str, name: &str) -> MLE<()> { | 8 | pub fn mods_insert(config: Cfg, id: &str, slug: &str, name: &str) -> MLE<()> { |
9 | 9 | ||
10 | println!("\t └Save mod info"); | ||
11 | |||
12 | let data = devdir(format!("{}/data.db", config.data).as_str()); | 10 | let data = devdir(format!("{}/data.db", config.data).as_str()); |
13 | let connection = Connection::open(data)?; | 11 | let connection = Connection::open(data)?; |
14 | 12 | ||
@@ -160,8 +158,6 @@ pub fn mods_get_versions(config: Cfg, mods: Vec<String>) -> MLE<Vec<DBModlistVer | |||
160 | 158 | ||
161 | //userlist | 159 | //userlist |
162 | pub fn userlist_insert(config: Cfg, list_id: &str, mod_id: &str, current_version: &str, applicable_versions: Vec<String>, current_link: &str, set_version: bool) -> MLE<()> { | 160 | pub fn userlist_insert(config: Cfg, list_id: &str, mod_id: &str, current_version: &str, applicable_versions: Vec<String>, current_link: &str, set_version: bool) -> MLE<()> { |
163 | println!("\t └Insert in list"); | ||
164 | |||
165 | let data = devdir(format!("{}/data.db", config.data).as_str()); | 161 | let data = devdir(format!("{}/data.db", config.data).as_str()); |
166 | let connection = Connection::open(data)?; | 162 | let connection = Connection::open(data)?; |
167 | 163 | ||