proxmox/proxmox-apt
Maximiliano Sandoval f8f57540c6 apt: cache_api: simplify match with unwrap_or_default
Fixes:

warning: match can be simplified with `.unwrap_or_default()`
  --> proxmox-apt/src/cache_api.rs:77:28
   |
77 |           let mut notified = match cache.notified {
   |  ____________________________^
78 | |             Some(notified) => notified,
79 | |             None => std::collections::HashMap::new(),
80 | |         };
   | |_________^ help: replace it with: `cache.notified.unwrap_or_default()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default
   = note: `#[warn(clippy::manual_unwrap_or_default)]` on by default

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
2024-08-28 13:09:15 +02:00
..
debian apt: bump to 0.11.3-1 2024-08-14 11:48:32 +02:00
src apt: cache_api: simplify match with unwrap_or_default 2024-08-28 13:09:15 +02:00
tests apt: clippy: don't clone types implementing Copy 2024-08-07 20:58:04 +02:00
Cargo.toml apt: bump to 0.11.3-1 2024-08-14 11:48:32 +02:00