diff options
author | Linus Färnstrand <linus@mullvad.net> | 2019-04-03 10:38:45 +0200 |
---|---|---|
committer | Linus Färnstrand <linus@mullvad.net> | 2019-04-03 10:38:45 +0200 |
commit | 69c853f314f66018aae6a7bd8768e100d2cd9d58 (patch) | |
tree | be956e07e5761348c5b7bed0d82aa9115f1e42ff /nftnl/examples/filter-ethernet.rs | |
parent | 9d596d522fc66f0c150877eeb68095790b2985ae (diff) |
Remove unused error variant
Diffstat (limited to 'nftnl/examples/filter-ethernet.rs')
-rw-r--r-- | nftnl/examples/filter-ethernet.rs | 4 |
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()) } } |