From c7ef0c961cc8c7a7955754a55df3118c74e8bef7 Mon Sep 17 00:00:00 2001 From: Simon THOBY Date: Sat, 28 Jan 2023 14:57:35 +0100 Subject: remove uneeded error types that makes rustables types !Send --- src/error.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/error.rs') diff --git a/src/error.rs b/src/error.rs index f6b6247..80f06d7 100644 --- a/src/error.rs +++ b/src/error.rs @@ -111,9 +111,6 @@ pub enum DecodeError { #[error("Invalid value for a protocol family")] UnknownProtocolFamily(i32), - - #[error("A custom error occured")] - Custom(Box), } #[derive(thiserror::Error, Debug)] @@ -157,9 +154,6 @@ pub enum QueryError { #[error("Error received from the kernel")] NetlinkError(nlmsgerr), - #[error("Custom error when customizing the query")] - InitError(#[from] Box), - #[error("Couldn't allocate a netlink object, out of memory ?")] NetlinkAllocationFailed, -- cgit v1.2.3