From cc8642f54f4e9f49b00cc5ffcb3aab4b77aabc6e Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 19 May 2016 17:05:14 +0200 Subject: [PATCH] libimagstore: Replace error module imports with macro helper --- libimagstore/src/error.rs | 4 +--- libimagstore/src/hook/error.rs | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/libimagstore/src/error.rs b/libimagstore/src/error.rs index ad36963e..3e32bf96 100644 --- a/libimagstore/src/error.rs +++ b/libimagstore/src/error.rs @@ -1,6 +1,4 @@ -use std::error::Error; -use std::fmt::Error as FmtError; -use std::fmt::{Display, Formatter}; +generate_error_imports!(); use std::convert::From; generate_error_types!(StoreError, StoreErrorKind, diff --git a/libimagstore/src/hook/error.rs b/libimagstore/src/hook/error.rs index ec06dd98..e55c2b8f 100644 --- a/libimagstore/src/hook/error.rs +++ b/libimagstore/src/hook/error.rs @@ -1,6 +1,4 @@ -use std::error::Error; -use std::fmt::Error as FmtError; -use std::fmt::{Display, Formatter}; +generate_error_imports!(); use std::convert::Into; generate_error_types!(HookError, HookErrorKind,