From 69c853f314f66018aae6a7bd8768e100d2cd9d58 Mon Sep 17 00:00:00 2001 From: Linus Färnstrand Date: Wed, 3 Apr 2019 10:38:45 +0200 Subject: Remove unused error variant --- nftnl/examples/filter-ethernet.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nftnl/examples/filter-ethernet.rs') 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 for Error { - fn from(error: nftnl::Error) -> Self { +impl From for Error { + fn from(error: nftnl::AllocationError) -> Self { Error(error.to_string()) } } -- cgit v1.2.3