diff options
Diffstat (limited to 'examples/tutorial01')
-rw-r--r-- | examples/tutorial01/main.rs | 7 | ||||
-rw-r--r-- | examples/tutorial01/polls/migrations/mod.rs | 2 | ||||
-rw-r--r-- | examples/tutorial01/polls/models.rs | 2 | ||||
-rw-r--r-- | examples/tutorial01/polls/urls.rs | 2 |
4 files changed, 7 insertions, 6 deletions
diff --git a/examples/tutorial01/main.rs b/examples/tutorial01/main.rs index 52ae922..af2f14d 100644 --- a/examples/tutorial01/main.rs +++ b/examples/tutorial01/main.rs @@ -1,9 +1,10 @@ -#[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; mod polls; diff --git a/examples/tutorial01/polls/migrations/mod.rs b/examples/tutorial01/polls/migrations/mod.rs index 64efe8d..56fe76d 100644 --- a/examples/tutorial01/polls/migrations/mod.rs +++ b/examples/tutorial01/polls/migrations/mod.rs @@ -1,3 +1,3 @@ -use tosin::db::migration::{Migration, gather}; +use tosin::db::migration::{gather, Migration}; gather!(); diff --git a/examples/tutorial01/polls/models.rs b/examples/tutorial01/polls/models.rs index bc1cd9b..987e4b0 100644 --- a/examples/tutorial01/polls/models.rs +++ b/examples/tutorial01/polls/models.rs @@ -1,5 +1,5 @@ #[allow(unused_imports)] -use tosin::db::models::{Model, Id, gather}; +use tosin::db::models::{gather, Id, Model}; // TODO define models diff --git a/examples/tutorial01/polls/urls.rs b/examples/tutorial01/polls/urls.rs index 04d93cc..83f3ecb 100644 --- a/examples/tutorial01/polls/urls.rs +++ b/examples/tutorial01/polls/urls.rs @@ -1,4 +1,4 @@ -use tosin::urls::{UrlMap, url_map}; +use tosin::urls::{url_map, UrlMap}; use super::views; |