aboutsummaryrefslogtreecommitdiff
path: root/nftnl/examples/filter-ethernet.rs
diff options
context:
space:
mode:
Diffstat (limited to 'nftnl/examples/filter-ethernet.rs')
-rw-r--r--nftnl/examples/filter-ethernet.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/nftnl/examples/filter-ethernet.rs b/nftnl/examples/filter-ethernet.rs
index 1dbf71a..5b5bcbc 100644
--- a/nftnl/examples/filter-ethernet.rs
+++ b/nftnl/examples/filter-ethernet.rs
@@ -125,8 +125,8 @@ fn socket_recv<'a>(socket: &mnl::Socket, buf: &'a mut [u8]) -> Result<Option<&'a
#[derive(Debug)]
struct Error(String);
-impl From<nftnl::Error> for Error {
- fn from(error: nftnl::Error) -> Self {
+impl From<nftnl::AllocationError> for Error {
+ fn from(error: nftnl::AllocationError) -> Self {
Error(error.to_string())
}
}