proxmox/proxmox-auth-api
Maximiliano Sandoval 52cf0c05f5 auth-api: do not clone struct implementing Copy
Fixes the clippy warning:

warning: using `clone` on type `Option<&dyn AuthContext>` which implements the `Copy` trait
   --> proxmox-auth-api/src/api/mod.rs:111:5
    |
111 | /     AUTH_CONTEXT
112 | |         .lock()
113 | |         .unwrap()
114 | |         .clone()
    | |________________^
    |
    = 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
help: try dereferencing it
    |
111 ~     (*AUTH_CONTEXT
112 +         .lock()
113 +         .unwrap())
    |

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
2024-06-28 11:09:48 +02:00
..
debian auth-api: bump to 0.4.1 2024-06-19 12:10:41 +02:00
examples auth-api: fixup examples 2023-07-10 09:06:35 +02:00
src auth-api: do not clone struct implementing Copy 2024-06-28 11:09:48 +02:00
Cargo.toml auth-api: bump to 0.4.1 2024-06-19 12:10:41 +02:00