Skip to content

Commit

Permalink
fix one IndexView, still 2 to go
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetbout committed Aug 2, 2024
1 parent 7d8751e commit 2df8094
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/data_structures/src/byte_reader.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -583,13 +583,13 @@ impl ByteArrayIndexViewAsSnapshotImpl of IndexView<ByteArray, usize, @u8> {

// use core::ops::index::IndexView;
impl ByteReaderIndexViewImpl<
T, impl TIndexView: IndexView<T, usize, @u8>
T, impl TIndexView: core::ops::index::IndexView<T, usize>, +Into<TIndexView::Target, u8>
> of core::ops::index::IndexView<ByteReaderState<T>, usize> {
type Target = @u8;

#[inline(always)]
fn index(self: @ByteReaderState<T>, index: usize) -> @u8 {
TIndexView::index(*self.data, index)
@TIndexView::index(*self.data, index).into()
}
}

Expand Down

0 comments on commit 2df8094

Please sign in to comment.