Skip to content

Commit 06e212c

Browse files
committed
!fix rebase issue
1 parent 213dac2 commit 06e212c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ impl<Item, Gap, const CAP: usize> LinkedChunk<Item, Gap, CAP> {
415415
/// Iterate over the items, forward.
416416
///
417417
/// It iterates from the first to the last item.
418-
pub fn items(&self) -> impl Iterator<Item = (ItemPosition, &T)> {
418+
pub fn items(&self) -> impl Iterator<Item = (ItemPosition, &Item)> {
419419
let first_chunk = self.first_chunk();
420420
let ChunkContent::Items(items) = first_chunk.content() else {
421421
unreachable!("The first chunk is necessarily an `Items`");
@@ -467,7 +467,7 @@ impl<Item, Gap, const CAP: usize> LinkedChunk<Item, Gap, CAP> {
467467
}
468468

469469
/// Get the first chunk, as an immutable reference.
470-
fn first_chunk(&self) -> &Chunk<T, U, C> {
470+
fn first_chunk(&self) -> &Chunk<Item, Gap, CAP> {
471471
unsafe { self.first.as_ref() }
472472
}
473473

@@ -748,7 +748,7 @@ impl<Item, Gap, const CAPACITY: usize> Chunk<Item, Gap, CAPACITY> {
748748
}
749749

750750
/// Get the content of the chunk.
751-
pub fn content(&self) -> &ChunkContent<T, U> {
751+
pub fn content(&self) -> &ChunkContent<Item, Gap> {
752752
&self.content
753753
}
754754

0 commit comments

Comments
 (0)