libbpf / libbpf-rs

Minimal and opinionated eBPF tooling for the Rust ecosystem
Other
773 stars 135 forks source link

libbpf-cargo: Suppress some Clippy warnings #922

Closed d-e-s-o closed 2 months ago

d-e-s-o commented 2 months ago

With the changes to initialize maps inline during skeleton open/load, we may end up with Clippy complaining that a loop never loops or a match never matches, if there are no maps present. Silence the warnings. Such patterns are to be expected in generated code like this.