diff options
author | Melody Horn <melody@boringcactus.com> | 2021-06-29 22:44:11 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-06-29 22:44:11 -0600 |
commit | 9829bbfcd57c57e237c6aacb96a78d0b9f5bab68 (patch) | |
tree | 43dc643d7b592d9abc4c5f89121e249ccb597d7d /src/settings.rs | |
parent | 9dd7f2256a82f95096d928aaef70d15603152ebc (diff) | |
download | tosin-9829bbfcd57c57e237c6aacb96a78d0b9f5bab68.tar.gz tosin-9829bbfcd57c57e237c6aacb96a78d0b9f5bab68.zip |
lol no generics
Diffstat (limited to 'src/settings.rs')
-rw-r--r-- | src/settings.rs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/settings.rs b/src/settings.rs index 4b140a6..0ae1136 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -1,17 +1,15 @@ -use crate::db::backend::{self, Connectable}; +use crate::db::backend::Database; -pub struct Settings<C: Connectable> { +pub struct Settings { pub installed_apps: &'static [&'static crate::apps::AppConfig], - pub database: C, + pub database: Database, } -impl Default for Settings<backend::Sqlite> { +impl Default for Settings { fn default() -> Self { Self { installed_apps: &[], - database: backend::Sqlite { - db_file: "db.sqlite3", - }, + database: Database::default(), } } } |