libimagstore: Replace error module imports with macro helper
This commit is contained in:
parent
1dbfb7cf28
commit
cc8642f54f
2 changed files with 2 additions and 6 deletions
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue