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/bin | |
parent | 9dd7f2256a82f95096d928aaef70d15603152ebc (diff) | |
download | tosin-9829bbfcd57c57e237c6aacb96a78d0b9f5bab68.tar.gz tosin-9829bbfcd57c57e237c6aacb96a78d0b9f5bab68.zip |
lol no generics
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/tosin-admin.rs | 7 |
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() } |