aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan Perry <avaglir@gmail.com>2018-09-24 08:12:00 -0400
committerNathan Perry <avaglir@gmail.com>2018-09-24 08:19:05 -0400
commit12be51078f24cca0f7ceccb0885d1e60a0ae2148 (patch)
tree65244fbe43e1aadffa8a1a1817b553b694f6ec7f /src
parentbe8d95583734570b57649adf4999721856a12711 (diff)
roll back to edition 2015 for editor support
Diffstat (limited to 'src')
-rw-r--r--src/main.rs49
1 files changed, 35 insertions, 14 deletions
diff --git a/src/main.rs b/src/main.rs
index baf1e06..24f35a7 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,26 +1,47 @@
#![feature(transpose_result)]
+#![feature(crate_in_paths)]
-#[macro_use] extern crate lazy_static;
-#[macro_use] extern crate log;
+extern crate chrono;
+#[cfg(feature = "diesel")]
+#[macro_use] extern crate diesel;
+extern crate dotenv;
#[macro_use] extern crate dotenv_codegen;
+extern crate either;
#[macro_use] extern crate failure;
+extern crate fern;
+#[macro_use] extern crate lazy_static;
+#[macro_use] extern crate log;
+extern crate rand;
+extern crate regex;
+extern crate serenity;
+extern crate sha1;
+extern crate typemap;
+extern crate url;
-use self::commands::register_commands;
use dotenv::dotenv;
-use serenity::framework::standard::help_commands;
-use serenity::framework::StandardFramework;
-use serenity::model::gateway::Ready;
-use serenity::model::id::{GuildId, UserId};
-use serenity::prelude::*;
-use std::{env, thread};
-use std::time::{Duration, Instant};
-
use failure::Error;
-
+use self::commands::register_commands;
pub use self::util::*;
+use serenity::{
+ framework::{
+ standard::help_commands,
+ StandardFramework,
+ },
+ model::{
+ gateway::Ready,
+ id::{GuildId, UserId},
+ },
+ prelude::*,
+};
+use std::{
+ env,
+ thread,
+ time::{
+ Duration,
+ Instant
+ },
+};
-#[cfg(feature = "diesel")]
-#[macro_use] extern crate diesel;
#[cfg(feature = "diesel")]
mod db;