From 42d14c943eb31753489b39ef58803c543c023bee Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Mon, 28 Jun 2021 17:12:33 -0600 Subject: fmt --- examples/tutorial02/polls/migrations/mod.rs | 2 +- examples/tutorial02/polls/models.rs | 6 +++--- examples/tutorial02/polls/urls.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/tutorial02/polls') diff --git a/examples/tutorial02/polls/migrations/mod.rs b/examples/tutorial02/polls/migrations/mod.rs index 64efe8d..56fe76d 100644 --- a/examples/tutorial02/polls/migrations/mod.rs +++ b/examples/tutorial02/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/tutorial02/polls/models.rs b/examples/tutorial02/polls/models.rs index c9de156..48e58cc 100644 --- a/examples/tutorial02/polls/models.rs +++ b/examples/tutorial02/polls/models.rs @@ -1,9 +1,9 @@ -use tosin::db::models::{Model, Id, gather}; +use tosin::db::models::{gather, Id, Model}; #[derive(Model, PartialEq, Debug)] pub struct Question { id: Option, - #[model(max_length=200)] + #[model(max_length = 200)] question_text: String, /// date published pub_date: chrono::NaiveDateTime, @@ -14,7 +14,7 @@ pub struct Choice { id: Option, #[model(Question, on_delete=Cascade)] question: Id, - #[model(max_length=200)] + #[model(max_length = 200)] choice_text: String, #[model(default = 0)] votes: usize, diff --git a/examples/tutorial02/polls/urls.rs b/examples/tutorial02/polls/urls.rs index 04d93cc..83f3ecb 100644 --- a/examples/tutorial02/polls/urls.rs +++ b/examples/tutorial02/polls/urls.rs @@ -1,4 +1,4 @@ -use tosin::urls::{UrlMap, url_map}; +use tosin::urls::{url_map, UrlMap}; use super::views; -- cgit v1.2.3