Skip to content

Commit

Permalink
Add missing read_u32 and read_u64 to trait.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexhuszagh committed Sep 8, 2024
1 parent 788bf99 commit 3f6b344
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lexical-util/src/skip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -700,8 +700,13 @@ macro_rules! skip_iterator_byteiter_base {
}

#[inline]
fn read<V>(&self) -> Option<V> {
self.byte.read()
fn read_u32(&self) -> Option<u32> {
unsafe { self.byte.read_u32() }
}

#[inline]
fn read_u64(&self) -> Option<u64> {
unsafe { self.byte.read_u64() }
}

#[inline]
Expand Down

0 comments on commit 3f6b344

Please sign in to comment.