summaryrefslogtreecommitdiff
path: root/src/db.rs
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2023-02-19 12:14:37 +0100
committerfxqnlr <[email protected]>2023-02-19 12:14:37 +0100
commit9f2f36eb7ff00d655ab9fb12f10434962b7de1a2 (patch)
treea45f7334cddaff7e686563b4d8e49bbd3d52ede6 /src/db.rs
parentca438e8956f8ce179551d659e3b82d679759707e (diff)
downloadmodlist-9f2f36eb7ff00d655ab9fb12f10434962b7de1a2.tar
modlist-9f2f36eb7ff00d655ab9fb12f10434962b7de1a2.tar.gz
modlist-9f2f36eb7ff00d655ab9fb12f10434962b7de1a2.zip
Fixed import output && cleanup
Diffstat (limited to 'src/db.rs')
-rw-r--r--src/db.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/db.rs b/src/db.rs
index a7c149c..9428466 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -7,8 +7,6 @@ use crate::{Modloader, config::Cfg, List, devdir, error::{MLE, MLError, ErrorTyp
7//MODS 7//MODS
8pub fn mods_insert(config: Cfg, id: &str, slug: &str, name: &str) -> MLE<()> { 8pub 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
162pub 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<()> { 160pub 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