aboutsummaryrefslogtreecommitdiff
path: root/nftnl/src/rule.rs
diff options
context:
space:
mode:
Diffstat (limited to 'nftnl/src/rule.rs')
-rw-r--r--nftnl/src/rule.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/nftnl/src/rule.rs b/nftnl/src/rule.rs
index 77a0e1c..18f1084 100644
--- a/nftnl/src/rule.rs
+++ b/nftnl/src/rule.rs
@@ -53,7 +53,7 @@ impl<'a> Rule<'a> {
/// As soon as an expression does not match the packet it's being evaluated for, evaluation
/// stops and the packet is evaluated against the next rule in the chain.
pub fn add_expr(&mut self, expr: &impl Expression) {
- unsafe { sys::nftnl_rule_add_expr(self.rule, expr.to_expr()) }
+ unsafe { sys::nftnl_rule_add_expr(self.rule, expr.to_expr(self)) }
}
/// Returns a reference to the [`Chain`] this rule lives in.