libimagstore: Replace error module imports with macro helper

This commit is contained in:
Matthias Beyer 2016-05-19 17:05:14 +02:00
parent 1dbfb7cf28
commit cc8642f54f
2 changed files with 2 additions and 6 deletions

View file

@ -1,6 +1,4 @@
use std::error::Error; generate_error_imports!();
use std::fmt::Error as FmtError;
use std::fmt::{Display, Formatter};
use std::convert::From; use std::convert::From;
generate_error_types!(StoreError, StoreErrorKind, generate_error_types!(StoreError, StoreErrorKind,

View file

@ -1,6 +1,4 @@
use std::error::Error; generate_error_imports!();
use std::fmt::Error as FmtError;
use std::fmt::{Display, Formatter};
use std::convert::Into; use std::convert::Into;
generate_error_types!(HookError, HookErrorKind, generate_error_types!(HookError, HookErrorKind,