@@ -415,7 +415,7 @@ impl<Item, Gap, const CAP: usize> LinkedChunk<Item, Gap, CAP> {
415
415
/// Iterate over the items, forward.
416
416
///
417
417
/// 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 ) > {
419
419
let first_chunk = self . first_chunk ( ) ;
420
420
let ChunkContent :: Items ( items) = first_chunk. content ( ) else {
421
421
unreachable ! ( "The first chunk is necessarily an `Items`" ) ;
@@ -467,7 +467,7 @@ impl<Item, Gap, const CAP: usize> LinkedChunk<Item, Gap, CAP> {
467
467
}
468
468
469
469
/// 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 > {
471
471
unsafe { self . first . as_ref ( ) }
472
472
}
473
473
@@ -748,7 +748,7 @@ impl<Item, Gap, const CAPACITY: usize> Chunk<Item, Gap, CAPACITY> {
748
748
}
749
749
750
750
/// Get the content of the chunk.
751
- pub fn content ( & self ) -> & ChunkContent < T , U > {
751
+ pub fn content ( & self ) -> & ChunkContent < Item , Gap > {
752
752
& self . content
753
753
}
754
754
0 commit comments