fix: Replace static mut with Lazy for thread safety in FileBoxRegistry
- Eliminate static_mut_refs warnings by using once_cell::sync::Lazy - Make FileMode enum public to fix private_interfaces warning - Reduce warnings from 6 to 3 - Prepare for Rust 2024 edition compatibility
This commit is contained in:
@ -92,7 +92,7 @@ impl MirBuilder {
|
||||
effects: EffectMask::READ.add(Effect::ReadHeap), // conservative
|
||||
};
|
||||
let entry = self.block_gen.next();
|
||||
let mut function = MirFunction::new(signature, entry);
|
||||
let function = MirFunction::new(signature, entry);
|
||||
|
||||
// Save current builder state
|
||||
let saved_function = self.current_function.take();
|
||||
|
||||
Reference in New Issue
Block a user