Skip to content

Commit 2e9e9ae

Browse files
committed
chore(redecryptor): Ensure the upgrade_event_cache method is inlined
1 parent 38df621 commit 2e9e9ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/matrix-sdk/src/event_cache/redecryptor.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,7 @@ impl Redecryptor {
609609
})
610610
}
611611

612+
#[inline(always)]
612613
fn upgrade_event_cache(cache: &Weak<EventCacheInner>) -> Option<EventCache> {
613614
cache.upgrade().map(|inner| EventCache { inner })
614615
}

0 commit comments

Comments
 (0)