Skip to content

Commit 88f75a8

Browse files
committed
feat(sdk): Chunk::is_gap and ::is_items are now public.
1 parent a8e522c commit 88f75a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -720,12 +720,12 @@ impl<Item, Gap, const CAPACITY: usize> Chunk<Item, Gap, CAPACITY> {
720720
}
721721

722722
/// Check whether this current chunk is a gap chunk.
723-
fn is_gap(&self) -> bool {
723+
pub fn is_gap(&self) -> bool {
724724
matches!(self.content, ChunkContent::Gap(..))
725725
}
726726

727727
/// Check whether this current chunk is an items chunk.
728-
fn is_items(&self) -> bool {
728+
pub fn is_items(&self) -> bool {
729729
!self.is_gap()
730730
}
731731

0 commit comments

Comments
 (0)