aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-06-28 17:12:33 -0600
committerMelody Horn <melody@boringcactus.com>2021-06-28 17:12:33 -0600
commit42d14c943eb31753489b39ef58803c543c023bee (patch)
treee5c7d9e3784192ebdc390dfa481631eaad07f0fd /tests
parentb1ec80c918dd9e156c049a500983fb15147c6e14 (diff)
downloadtosin-42d14c943eb31753489b39ef58803c543c023bee.tar.gz
tosin-42d14c943eb31753489b39ef58803c543c023bee.zip
fmt
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;