mirror of
https://github.com/nftables-rs/nftables-rs.git
synced 2026-10-20 00:01:34 +00:00
A lot of strings and arrays used in nftables structures are static, but currently we need to do allocations everywhere using owned String and Vec. Replace them with Cow so we can pass &'static str or &'static [_] whenever possible, while returning owned value when deserializing.