mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-18 18:45:19 +00:00
c59c61a983
Beta clippy fix: warning: initializer for `thread_local` value can be made `const` --> vmm/src/sigwinch_listener.rs:27:40 | 27 | static TX: RefCell<Option<File>> = 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: Rob Bradford <rbradford@rivosinc.com> (cherry picked from commit 9dfc39d336c2cc921649e1faa2b60fd2820cd6b6)