We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8da445 commit dbf35e0Copy full SHA for dbf35e0
1 file changed
sdks/rust/src/client_cache.rs
@@ -406,7 +406,8 @@ impl<M: SpacetimeModule> ClientCache<M> {
406
table_name: &'static str,
407
) -> &mut TableCache<Row> {
408
self.tables
409
- .get_or_insert_with::<HashMap<&'static str, TableCache<Row>>>(Default::default)
+ .entry::<HashMap<&'static str, TableCache<Row>>>()
410
+ .or_insert_with(Default::default)
411
.entry(table_name)
412
.or_insert_with(|| TableCache::new(self.extra_logging.clone()))
413
}
0 commit comments