diff options
author | Melody Horn <melody@boringcactus.com> | 2021-06-28 17:12:33 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-06-28 17:12:33 -0600 |
commit | 42d14c943eb31753489b39ef58803c543c023bee (patch) | |
tree | e5c7d9e3784192ebdc390dfa481631eaad07f0fd /src/bin | |
parent | b1ec80c918dd9e156c049a500983fb15147c6e14 (diff) | |
download | tosin-42d14c943eb31753489b39ef58803c543c023bee.tar.gz tosin-42d14c943eb31753489b39ef58803c543c023bee.zip |
fmt
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/tosin-admin.rs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/bin/tosin-admin.rs b/src/bin/tosin-admin.rs index e108207..b4fc1d4 100644 --- a/src/bin/tosin-admin.rs +++ b/src/bin/tosin-admin.rs @@ -13,12 +13,13 @@ const TOSIN_DEPENDENCY: &str = concat!( diesel = { version = "1.4.4", features = ["sqlite"] }"# ); const PROJECT_MAIN: &str = r#" -#[macro_use] extern crate diesel; +#[macro_use] +extern crate diesel; -use tosin::Settings; use tosin::contrib::admin; use tosin::db::backend::Connectable; -use tosin::urls::{UrlMap, url_map}; +use tosin::urls::{url_map, UrlMap}; +use tosin::Settings; fn urls() -> UrlMap { url_map! { @@ -53,20 +54,20 @@ pub const APP: AppConfig = AppConfig { }; "#; const APP_MIGRATIONS: &str = r#" -use tosin::db::migration::{Migration, gather}; +use tosin::db::migration::{gather, Migration}; gather!(); "#; const APP_MODELS: &str = r#" #[allow(unused_imports)] -use tosin::db::models::{Model, Id, gather}; +use tosin::db::models::{gather, Id, Model}; // TODO define models gather!(); "#; const APP_URLS: &str = r#" -use tosin::urls::{UrlMap, url_map}; +use tosin::urls::{url_map, UrlMap}; use super::views; |