proxmox/proxmox-api-macro/src
Maximiliano Sandoval d07a0243f4 use const blocks in thread_local! calls
Fixes the clippy warning:

warning: initializer for `thread_local` value can be made `const`
   --> proxmox-router/src/cli/command.rs:221:71
    |
221 |     static HELP_CONTEXT: RefCell<Option<Arc<CommandLineInterface>>> = RefCell::new(None);
    |                                                                       ^^^^^^^^^^^^^^^^^^ help: replace with: `const { RefCell::new(None) }`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#thread_local_initializer_can_be_made_const
    = note: `#[warn(clippy::thread_local_initializer_can_be_made_const)]` on by default

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
2024-06-28 10:22:58 +02:00
..
api api-macro: make skip_serializing_if without default an error 2023-12-06 14:39:47 +01:00
lib.rs use const blocks in thread_local! calls 2024-06-28 10:22:58 +02:00
serde.rs api-macro: make skip_serializing_if without default an error 2023-12-06 14:39:47 +01:00
types.rs switch from failure to anyhow 2020-04-17 18:34:21 +02:00
updater.rs add proxmox-schema and proxmox-router crates 2021-10-11 11:39:59 +02:00
util.rs various clippy fixes 2024-06-06 11:40:49 +02:00