diff --git a/src/core/config/manager.rs b/src/core/config/manager.rs index e55916ba..395475ac 100644 --- a/src/core/config/manager.rs +++ b/src/core/config/manager.rs @@ -21,7 +21,7 @@ pub struct Manager { } thread_local! { - static INDEX: Cell = 0.into(); + static INDEX: Cell = const { Cell::new(0_usize) }; static HANDLE: RefCell = const { RefCell::new([const { None }; HISTORY]) }; diff --git a/src/core/utils/sys/compute.rs b/src/core/utils/sys/compute.rs index 3ac5943a..8bb4f704 100644 --- a/src/core/utils/sys/compute.rs +++ b/src/core/utils/sys/compute.rs @@ -25,7 +25,7 @@ static NODE_TOPOLOGY: LazyLock = LazyLock::new(init_node_topology); thread_local! { /// Tracks the affinity for this thread. This is updated when affinities /// are set via our set_affinity() interface. - static CORE_AFFINITY: Cell = Cell::default(); + static CORE_AFFINITY: Cell = const { Cell::new(0) }; } /// Set the core affinity for this thread. The ID should be listed in