aboutsummaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/tosin-admin.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/bin/tosin-admin.rs b/src/bin/tosin-admin.rs
index b4fc1d4..0f19795 100644
--- a/src/bin/tosin-admin.rs
+++ b/src/bin/tosin-admin.rs
@@ -9,15 +9,14 @@ use structopt::StructOpt;
const TOSIN_DEPENDENCY: &str = concat!(
r#"tosin = { path = '"#,
env!("CARGO_MANIFEST_DIR"),
- r#"' }
-diesel = { version = "1.4.4", features = ["sqlite"] }"#
+ r#"', features = ["sqlite"] }
+diesel = "1.4.4""#
);
const PROJECT_MAIN: &str = r#"
#[macro_use]
extern crate diesel;
use tosin::contrib::admin;
-use tosin::db::backend::Connectable;
use tosin::urls::{url_map, UrlMap};
use tosin::Settings;
@@ -27,7 +26,7 @@ fn urls() -> UrlMap {
}
}
-fn settings() -> Settings<impl Connectable> {
+fn settings() -> Settings {
Settings {
..Settings::default()
}