From 3c92e88164db6a94177fb4adeb18c80dffc377e4 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 12 Dec 2019 02:16:27 +0100 Subject: remove quick_error quick_error used the deprecated Error::cause interface, therefore we want to use our own error enums with proper methods. --- src/main.rs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/main.rs') 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; -- cgit v1.2.3