diff --git a/libimagstore/src/hook/error.rs b/libimagstore/src/hook/error.rs index 472dc142..451fb5a5 100644 --- a/libimagstore/src/hook/error.rs +++ b/libimagstore/src/hook/error.rs @@ -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) -> HookError; -} - -impl Into for (HookErrorKind, Box) { - - fn into(self) -> HookError { - HookError::new(self.0, Some(self.1)) - } - -} -