mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-04 10:34:11 +02:00
use more nullhasher
This commit is contained in:
parent
33b8d76e88
commit
089f615a47
2 changed files with 15 additions and 7 deletions
|
|
@ -15,7 +15,12 @@ impl Hasher for NullHasher {
|
|||
|
||||
#[inline]
|
||||
fn write(&mut self, _msg: &[u8]) {
|
||||
panic!("can only hash u64 as u32");
|
||||
panic!("can only hash u64,u32,u16");
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn write_u16(&mut self, data: u16) {
|
||||
self.data = data as u64
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue