proxmox/proxmox-product-config/src
Shannon Sterz 8eae5a8330 product-config: use inner mutability for PRODUCT_CONFIG
with edition 2024 `static mut` references will be disallowed [1]. the
recommended way to work around this is to use inner mutability, so use a
`OnceLock` for the `PRODUCT_CONFIG` as that should not change throughout
the run time of an application.

[1]:
https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html

Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
2024-12-04 09:54:12 +01:00
..
filesystem_helpers.rs sys: use anyhow Error type for create_dir, and improve error messages 2024-06-13 11:51:44 +02:00
init.rs product-config: use inner mutability for PRODUCT_CONFIG 2024-12-04 09:54:12 +01:00
lib.rs tree-wide: enable doc_cfg and doc_auto_cfg for docs 2024-07-02 11:59:53 +02:00