proxmox/proxmox-api-macro
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
..
debian bump proxmox-api-macro to 1.0.8-1 2024-02-02 13:56:01 +01:00
src use const blocks in thread_local! calls 2024-06-28 10:22:58 +02:00
tests api: support #[default] attribute 2022-12-12 11:34:18 +01:00
Cargo.toml bump proxmox-api-macro to 1.0.8-1 2024-02-02 13:56:01 +01:00