proxmox/proxmox-tfa
Maximiliano Sandoval 16aa2b74bc use unwrap_or_default instead of unwrap_or(Vec::new)
Fixes the clippy warning:

warning: use of `unwrap_or_else` to construct default value
    --> proxmox-tfa/src/api/mod.rs:1355:43
     |
1355 |         |cap| cap.map(Vec::with_capacity).unwrap_or_else(Vec::new),
     |                                           ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
     = note: `#[warn(clippy::unwrap_or_default)]` on by default

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
2024-06-28 10:22:58 +02:00
..
debian tfa: bump to 4.1.3 2024-06-20 13:58:55 +02:00
src use unwrap_or_default instead of unwrap_or(Vec::new) 2024-06-28 10:22:58 +02:00
Cargo.toml tfa: bump to 4.1.3 2024-06-20 13:58:55 +02:00