Skip to content

Commit c22fa4e

Browse files
committed
fix(base): Fix a new clippy warning
1 parent f7f30f1 commit c22fa4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/matrix-sdk-base/src/store/memory_store.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ impl MemoryStore {
395395
.map(|m| m.iter().map(|r| (r.key().clone(), r.value().clone())).collect())
396396
})
397397
})
398-
.unwrap_or_else(Vec::new))
398+
.unwrap_or_default())
399399
}
400400

401401
async fn get_custom_value(&self, key: &[u8]) -> Result<Option<Vec<u8>>> {

0 commit comments

Comments
 (0)