Skip to content

Commit 04d10a8

Browse files
committed
[bfops/wasm-test]: Merge branch 'bfops/wasm-test' of github.com:clockworklabs/SpacetimeDB into bfops/wasm-test
2 parents cd6aaa8 + dbf35e0 commit 04d10a8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sdks/rust/src/client_cache.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,8 @@ impl<M: SpacetimeModule> ClientCache<M> {
406406
table_name: &'static str,
407407
) -> &mut TableCache<Row> {
408408
self.tables
409-
.get_or_insert_with::<HashMap<&'static str, TableCache<Row>>>(Default::default)
409+
.entry::<HashMap<&'static str, TableCache<Row>>>()
410+
.or_insert_with(Default::default)
410411
.entry(table_name)
411412
.or_insert_with(|| TableCache::new(self.extra_logging.clone()))
412413
}

0 commit comments

Comments
 (0)