aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/tutorial/mod.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/tutorial/mod.rs b/tests/tutorial/mod.rs
index 5d969cf..f101283 100644
--- a/tests/tutorial/mod.rs
+++ b/tests/tutorial/mod.rs
@@ -116,7 +116,7 @@ pub fn index() -> Response {
fs::write(
"src/polls/urls.rs",
r#"
-use tosin::urls::{UrlMap, url_map};
+use tosin::urls::{url_map, UrlMap};
use super::views;
@@ -133,12 +133,13 @@ pub fn urls() -> UrlMap {
fs::write(
"src/main.rs",
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;
mod polls;