diff options
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(()) |