aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2017-12-30 00:09:53 +0100
committerHarald Eilertsen <haraldei@anduin.net>2017-12-30 00:09:53 +0100
commitf6033128292bbd5838a6585a1214bc6c9275de38 (patch)
tree56e57f8258d91bce732a4b0b6e822e80cb662664 /src/lib.rs
parente7f487094a9a9202b20bcba471b79fb522d4c44a (diff)
downloadrocket-blog-f6033128292bbd5838a6585a1214bc6c9275de38.tar.gz
rocket-blog-f6033128292bbd5838a6585a1214bc6c9275de38.tar.bz2
rocket-blog-f6033128292bbd5838a6585a1214bc6c9275de38.zip
Order and cosmetics on extern crate declarations.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/lib.rs b/src/lib.rs
index b05ec3a..ec821e6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,20 +1,17 @@
#![feature(plugin, custom_derive)]
#![plugin(rocket_codegen)]
-#[macro_use]
-extern crate diesel_codegen;
-pub mod models;
-pub mod schema;
+#[macro_use] extern crate diesel_codegen;
+#[macro_use] extern crate diesel;
+#[macro_use] extern crate serde_derive;
-#[macro_use]
-extern crate diesel;
extern crate dotenv;
extern crate r2d2_diesel;
extern crate r2d2;
extern crate rocket;
-#[macro_use]
-extern crate serde_derive;
+pub mod models;
+pub mod schema;
use diesel::pg::PgConnection;
use r2d2_diesel::ConnectionManager;