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:
@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
use super::vm::{VMValue, VMError};
|
||||
use crate::mir::{BasicBlockId, ValueId, MirInstruction};
|
||||
use crate::mir::{BasicBlockId, ValueId};
|
||||
use std::collections::HashMap;
|
||||
|
||||
/// Phi nodeの実行ヘルパー
|
||||
@ -45,7 +45,7 @@ impl PhiHandler {
|
||||
/// Phi命令を実行
|
||||
pub fn execute_phi(
|
||||
&mut self,
|
||||
dst: ValueId,
|
||||
_dst: ValueId,
|
||||
inputs: &[(BasicBlockId, ValueId)],
|
||||
get_value_fn: impl Fn(ValueId) -> Result<VMValue, VMError>,
|
||||
) -> Result<VMValue, VMError> {
|
||||
|
||||
Reference in New Issue
Block a user