aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 181d64a..55afb00 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -11,13 +11,23 @@ extern crate rusttype;
extern crate termcolor;
extern crate xdg;
#[macro_use]
-extern crate quick_error;
-#[macro_use]
extern crate lazy_static;
use std::error::Error as StdError;
use std::fmt;
+macro_rules! error_froms {
+ ($tname:ty, $($ename:ident : $fty:ty => $res:expr,)*) => {
+ $(
+ impl From<$fty> for $tname {
+ fn from($ename: $fty) -> Self {
+ $res
+ }
+ }
+ )*
+ }
+}
+
mod api;
mod bt;
mod cache;