proxmox/proxmox-section-config
Maximiliano Sandoval cb4acf6d93 use contains_key instead of .get().is_{some, none}()
Fixes the clippy lints:

warning: unnecessary use of `get("lo").is_none()`
   --> proxmox-network-api/src/config/parser.rs:603:30
    |
603 |         if config.interfaces.get("lo").is_none() {
    |            ------------------^^^^^^^^^^^^^^^^^^^
    |            |
    |            help: replace it with: `!config.interfaces.contains_key("lo")`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_get_then_check
    = note: `#[warn(clippy::unnecessary_get_then_check)]` on by default

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
2024-06-28 10:22:58 +02:00
..
debian bump proxmox-section-config to 2.0.2-1 2024-05-17 11:04:10 +02:00
src use contains_key instead of .get().is_{some, none}() 2024-06-28 10:22:58 +02:00
Cargo.toml bump proxmox-section-config to 2.0.2-1 2024-05-17 11:04:10 +02:00