diff options
author | Simon THOBY <git@nightmared.fr> | 2021-11-15 23:23:12 +0100 |
---|---|---|
committer | lafleur <lafleur@boum.org> | 2021-11-26 12:07:37 +0100 |
commit | c67c3d1e8d0c414dee5b0c947c6af1b4a30411bd (patch) | |
tree | f6ed32bdb6046addee6477572c40c4fc25698c18 /tests/lib.rs | |
parent | 4716eb28408422f1a5249eb39f75f67916ec5781 (diff) |
ergonomic change: delete the reference on `Set` objects
Diffstat (limited to 'tests/lib.rs')
-rw-r--r-- | tests/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib.rs b/tests/lib.rs index c30f881..0d7132c 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -115,11 +115,11 @@ pub fn get_test_rule() -> Rule { Rule::new(Rc::new(get_test_chain())) } -pub fn get_test_set<'a, T: SetKey>(table: &'a Table) -> Set<'a, T> { +pub fn get_test_set<T: SetKey>() -> Set<T> { Set::new( CStr::from_bytes_with_nul(SET_NAME).unwrap(), SET_ID, - table, + Rc::new(get_test_table()), ProtoFamily::Ipv4, ) } |