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/src/batch.rs | |
parent | 9d596d522fc66f0c150877eeb68095790b2985ae (diff) |
Remove unused error variant
Diffstat (limited to 'nftnl/src/batch.rs')
-rw-r--r-- | nftnl/src/batch.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nftnl/src/batch.rs b/nftnl/src/batch.rs index 8998f16..e6e95a5 100644 --- a/nftnl/src/batch.rs +++ b/nftnl/src/batch.rs @@ -78,7 +78,7 @@ impl Batch { fn next(&mut self) -> Result<()> { if unsafe { sys::nftnl_batch_update(self.batch) } < 0 { - return Err(crate::Error::AllocationError); + return Err(crate::AllocationError(())); } self.seq += 1; Ok(()) |