From e51fe76acde0bae200ef026a2bb02f7d5c4cb166 Mon Sep 17 00:00:00 2001 From: Connor Jones Date: Sat, 2 Dec 2023 23:21:58 -0800 Subject: [PATCH] Remove expect statments from nft_set macro --- nftnl/src/set.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nftnl/src/set.rs b/nftnl/src/set.rs index eb33866..bfeb861 100644 --- a/nftnl/src/set.rs +++ b/nftnl/src/set.rs @@ -17,9 +17,9 @@ macro_rules! nft_set { nft_set!($name, $id, $table, $family) }; ($name:expr, $id:expr, $table:expr, $family:expr; [ $($value:expr,)* ]) => {{ - let mut set = nft_set!($name, $id, $table, $family).expect("Set allocation failed"); + let mut set = nft_set!($name, $id, $table, $family); $( - set.add($value).expect(stringify!(Unable to add $value to set $name)); + set.add($value); )* set }};