aboutsummaryrefslogtreecommitdiff
path: root/tests/lib.rs
diff options
context:
space:
mode:
authorSimon THOBY <git@nightmared.fr>2021-11-15 23:23:12 +0100
committerlafleur <lafleur@boum.org>2021-11-26 12:07:37 +0100
commitc67c3d1e8d0c414dee5b0c947c6af1b4a30411bd (patch)
treef6ed32bdb6046addee6477572c40c4fc25698c18 /tests/lib.rs
parent4716eb28408422f1a5249eb39f75f67916ec5781 (diff)
ergonomic change: delete the reference on `Set` objects
Diffstat (limited to 'tests/lib.rs')
-rw-r--r--tests/lib.rs4
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,
)
}