From 685b47247aad71468f190c42929ca6f0dce843fa Mon Sep 17 00:00:00 2001 From: Melody Horn / boringcactus Date: Wed, 16 Jun 2021 12:36:47 -0600 Subject: make database backends generic --- src/settings.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/settings.rs') diff --git a/src/settings.rs b/src/settings.rs index 37a3395..4b140a6 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -1,15 +1,15 @@ -use crate::db::backend::DbBackend; +use crate::db::backend::{self, Connectable}; -pub struct Settings { +pub struct Settings { pub installed_apps: &'static [&'static crate::apps::AppConfig], - pub database: DbBackend, + pub database: C, } -impl Default for Settings { +impl Default for Settings { fn default() -> Self { Self { installed_apps: &[], - database: DbBackend::Sqlite { + database: backend::Sqlite { db_file: "db.sqlite3", }, } -- cgit v1.2.3