8062e1abb3
Fixes the manual_unwrap_or_default clippy lint: ``` warning: match can be simplified with `.unwrap_or_default()` --> proxmox-apt/src/repositories/file.rs:369:30 | 369 | let mut origin = match repo.get_cached_origin(apt_lists_dir) { | ______________________________^ 370 | | Ok(option) => option, 371 | | Err(_) => None, 372 | | }; | |_____________^ help: replace it with: `repo.get_cached_origin(apt_lists_dir).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> |
||
---|---|---|
.. | ||
debian | ||
src | ||
tests | ||
Cargo.toml |