Skip to content

Commit dbf35e0

Browse files
authored
Apply suggestion from @bfops
Signed-off-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
1 parent c8da445 commit dbf35e0

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)