aboutsummaryrefslogtreecommitdiff
path: root/incria/examples/spreadsheet.rs
diff options
context:
space:
mode:
Diffstat (limited to 'incria/examples/spreadsheet.rs')
-rw-r--r--incria/examples/spreadsheet.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/incria/examples/spreadsheet.rs b/incria/examples/spreadsheet.rs
index 135ca80..5c377e3 100644
--- a/incria/examples/spreadsheet.rs
+++ b/incria/examples/spreadsheet.rs
@@ -1,11 +1,10 @@
-use std::{future::Future, pin::Pin};
+use std::{future::Future, pin::Pin, sync::OnceLock};
use incria::{
deps,
thunk::{Thunk, ThunkMapper},
Mapper,
};
-use once_cell::sync::OnceCell;
type Key = (usize, usize);
type Value = usize;
@@ -29,7 +28,7 @@ impl Thunk<Key, Value> for CellThunk {
}
type CellMapping = ThunkMapper<Key, Value, CellThunk>;
-static CELL_MAPPING: OnceCell<CellMapping> = OnceCell::new();
+static CELL_MAPPING: OnceLock<CellMapping> = OnceLock::new();
fn cell_mapping() -> &'static CellMapping {
CELL_MAPPING.get_or_init(CellMapping::default)
}