diff options
Diffstat (limited to 'nftnl/src/expr/counter.rs')
-rw-r--r-- | nftnl/src/expr/counter.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nftnl/src/expr/counter.rs b/nftnl/src/expr/counter.rs index 822a714..3f1415c 100644 --- a/nftnl/src/expr/counter.rs +++ b/nftnl/src/expr/counter.rs @@ -1,4 +1,4 @@ -use super::Expression; +use super::{Expression, Rule}; use nftnl_sys::{self as sys, libc::c_char}; /// A counter expression adds a counter to the rule that is incremented to count number of packets @@ -6,7 +6,7 @@ use nftnl_sys::{self as sys, libc::c_char}; pub struct Counter; impl Expression for Counter { - fn to_expr(&self) -> *mut sys::nftnl_expr { + fn to_expr(&self, _rule: &Rule) -> *mut sys::nftnl_expr { try_alloc!(unsafe { sys::nftnl_expr_alloc(b"counter\0" as *const _ as *const c_char) }) } } |