aboutsummaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs6
1 files changed, 0 insertions, 6 deletions
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<dyn std::error::Error + 'static>),
}
#[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<dyn std::error::Error + Send + 'static>),
-
#[error("Couldn't allocate a netlink object, out of memory ?")]
NetlinkAllocationFailed,