proxmox/proxmox-apt/tests
Maximiliano Sandoval 7052972212 apt: clippy: don't clone types implementing Copy
Fixes the clippy warnings:

warning: `proxmox-apt` (lib) generated 1 warning
warning: using `clone` on type `Option<[u8; 32]>` which implements the `Copy` trait
   --> proxmox-apt/tests/repositories.rs:117:22
    |
117 |     let old_digest = file.digest.clone().unwrap();
    |                      ^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `file.digest`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
    = note: `#[warn(clippy::clone_on_copy)]` on by default

warning: using `clone` on type `[u8; 32]` which implements the `Copy` trait
   --> proxmox-apt/tests/repositories.rs:135:24
    |
135 |     file.digest = Some(old_digest.clone());
    |                        ^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `old_digest`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
Reviewed-by: Lukas Wagner <l.wagner@proxmox.com>
2024-08-07 20:58:04 +02:00
..
deb822 move to proxmox-apt/ 2023-05-24 09:21:55 +02:00
lists move to proxmox-apt/ 2023-05-24 09:21:55 +02:00
sources.list.d apt: add Ceph Reef to standard repo list 2023-09-04 17:58:45 +02:00
sources.list.d.expected apt: add Ceph Reef to standard repo list 2023-09-04 17:58:45 +02:00
repositories.rs apt: clippy: don't clone types implementing Copy 2024-08-07 20:58:04 +02:00