diff options
author | David Lönnhager <david.l@mullvad.net> | 2020-05-27 10:08:50 +0200 |
---|---|---|
committer | David Lönnhager <david.l@mullvad.net> | 2020-05-27 10:16:39 +0200 |
commit | accce17a2becb7310a91c8632551c48c49b67554 (patch) | |
tree | 5279811faba137994c5175ac3b78ab7448721f3a | |
parent | 47c7619443c1a6182c7930e7f3cca4737ae2730c (diff) |
Rename immediate_to_expr to to_immediate_expr
-rw-r--r-- | nftnl/src/expr/verdict.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nftnl/src/expr/verdict.rs b/nftnl/src/expr/verdict.rs index fe1e73e..1395a94 100644 --- a/nftnl/src/expr/verdict.rs +++ b/nftnl/src/expr/verdict.rs @@ -62,7 +62,7 @@ pub enum IcmpCode { } impl Verdict { - unsafe fn immediate_to_expr(&self, immediate_const: i32) -> *mut sys::nftnl_expr { + unsafe fn to_immediate_expr(&self, immediate_const: i32) -> *mut sys::nftnl_expr { let expr = try_alloc!(sys::nftnl_expr_alloc( b"immediate\0" as *const _ as *const c_char )); @@ -136,7 +136,7 @@ impl Expression for Verdict { } } }; - unsafe { self.immediate_to_expr(immediate_const) } + unsafe { self.to_immediate_expr(immediate_const) } } } |