Skip to content

Commit 3f6b344

Browse files
committed
Add missing read_u32 and read_u64 to trait.
1 parent 788bf99 commit 3f6b344

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lexical-util/src/skip.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,8 +700,13 @@ macro_rules! skip_iterator_byteiter_base {
700700
}
701701

702702
#[inline]
703-
fn read<V>(&self) -> Option<V> {
704-
self.byte.read()
703+
fn read_u32(&self) -> Option<u32> {
704+
unsafe { self.byte.read_u32() }
705+
}
706+
707+
#[inline]
708+
fn read_u64(&self) -> Option<u64> {
709+
unsafe { self.byte.read_u64() }
705710
}
706711

707712
#[inline]

0 commit comments

Comments
 (0)