diff options
| author | Nathan Perry <avaglir@gmail.com> | 2018-04-05 20:53:37 -0400 |
|---|---|---|
| committer | Nathan Perry <avaglir@gmail.com> | 2018-04-05 20:53:37 -0400 |
| commit | 1fda857d25c3d33e593951eef3ce713fa69a7025 (patch) | |
| tree | 23f714c3fc7c7233e498307480109f3ab2f779e3 /src/main.rs | |
| parent | 82aefce4f7c5f24730fb5da22ee426988ae4301a (diff) | |
start to integrate db support with commands
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index fba574e..551449b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,5 @@ +#![feature(transpose_result)] + #[macro_use] extern crate cfg_if; extern crate chrono; extern crate ctrlc; @@ -10,6 +12,8 @@ extern crate fern; #[macro_use] extern crate serenity; extern crate typemap; extern crate url; +extern crate rand; +extern crate either; use commands::register_commands; use dotenv::dotenv; @@ -39,7 +43,8 @@ mod errors { Serenity(::serenity::Error); MissingVar(::std::env::VarError); DieselConn(::diesel::ConnectionError) #[cfg(feature = "diesel")]; - Diesel(::diesel::result::Error) #[cfg(feature = "diesel")]; + Diesel(::diesel::result::Error) #[cfg(feature = "diesel")]; + R2D2(::diesel::r2d2::Error) #[cfg(feature = "diesel")]; } } } |
