From 42d14c943eb31753489b39ef58803c543c023bee Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Mon, 28 Jun 2021 17:12:33 -0600 Subject: fmt --- src/bin/tosin-admin.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/bin') 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; -- cgit v1.2.3