proxmox/proxmox-schema/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
..
de use const blocks in thread_local! calls 2024-06-28 10:22:58 +02:00
ser schema: serialize enum unit variants 2023-09-07 17:29:36 +02:00
api_type_macros.rs add proxmox-schema and proxmox-router crates 2021-10-11 11:39:59 +02:00
api_types.rs schema: api-types: add ip/cidr api schemas 2024-05-16 09:09:37 +02:00
const_regex.rs add proxmox-schema and proxmox-router crates 2021-10-11 11:39:59 +02:00
format.rs schema: implement oneOf schema support 2024-02-02 12:06:28 +01:00
lib.rs schema: serde based property string de- and serialization 2023-07-13 16:18:58 +02:00
property_string.rs clippy fix: complex type definitions 2023-08-08 11:29:36 +02:00
schema.rs schema: drop periods after errors 2024-02-21 12:05:44 +01:00
upid.rs proxmox-schema: derive PartialEq for UPID (for GUI) 2023-11-20 11:10:22 +01:00