We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f199246 commit d4b2d5eCopy full SHA for d4b2d5e
src/cache.rs
@@ -14,7 +14,7 @@ thread_local! {
14
/// The global ID counter for tracked values. Each tracked value gets a
15
/// unqiue ID based on which its validations are cached in the accelerator.
16
/// IDs may only be reused upon eviction of the accelerator.
17
- static ID: Cell<usize> = Cell::new(0);
+ static ID: Cell<usize> = const { Cell::new(0) };
18
19
/// The global, dynamic accelerator shared by all cached values.
20
static ACCELERATOR: RefCell<HashMap<(usize, u128), u128>>
0 commit comments