Remove old error code which is unused
This commit is contained in:
parent
183c46a7dd
commit
cb87b4b5d8
1 changed files with 0 additions and 13 deletions
|
@ -6,16 +6,3 @@ generate_error_types!(HookError, HookErrorKind,
|
|||
AccessTypeViolation => "Hook access type violation"
|
||||
);
|
||||
|
||||
pub trait IntoHookError {
|
||||
fn into_hookerror(self) -> HookError;
|
||||
fn into_hookerror_with_cause(self, cause: Box<Error>) -> HookError;
|
||||
}
|
||||
|
||||
impl Into<HookError> for (HookErrorKind, Box<Error>) {
|
||||
|
||||
fn into(self) -> HookError {
|
||||
HookError::new(self.0, Some(self.1))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue