Skip to content

Commit

Permalink
removes expect statments from nft_set macro
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmakes authored and faern committed Jun 18, 2024
1 parent b951ed2 commit 20a7b42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nftnl/src/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}};
Expand Down

0 comments on commit 20a7b42

Please sign in to comment.