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/bin/tosin-admin.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/bin') diff --git a/src/bin/tosin-admin.rs b/src/bin/tosin-admin.rs index 6408337..e519d50 100644 --- a/src/bin/tosin-admin.rs +++ b/src/bin/tosin-admin.rs @@ -10,6 +10,7 @@ const TOSIN_DEPENDENCY: &str = concat!(r#"tosin = { path = ""#, env!("CARGO_MANI const PROJECT_MAIN: &str = r#" use tosin::Settings; use tosin::contrib::admin; +use tosin::db::backend::Connectable; use tosin::urls::{UrlMap, url_map}; fn urls() -> UrlMap { @@ -18,7 +19,7 @@ fn urls() -> UrlMap { } } -fn settings() -> Settings { +fn settings() -> Settings { Settings { ..Settings::default() } -- cgit v1.2.3