proxmox/proxmox-router/src/cli
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
..
command.rs use const blocks in thread_local! calls 2024-06-28 10:22:58 +02:00
completion_helpers.rs router: rustfmt 2022-04-10 12:40:39 +02:00
completion.rs router: rustfmt 2022-04-10 12:40:39 +02:00
environment.rs add proxmox-schema and proxmox-router crates 2021-10-11 11:39:59 +02:00
format.rs router: make format&print generic 2023-02-28 14:57:35 +01:00
getopts.rs schema: cli: simplify can_default check 2024-01-24 09:20:42 +01:00
mod.rs cleanup use statements 2024-06-19 11:52:39 +02:00
readline.rs add proxmox-schema and proxmox-router crates 2021-10-11 11:39:59 +02:00
shellword.rs router: clippy fixups 2022-06-02 10:10:01 +02:00
text_table.rs router: repalce c_str! with c"literals" 2024-06-20 10:55:10 +02:00