1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-04 10:34:11 +02:00

add serde support for packets

This commit is contained in:
Robin Appelman 2021-07-25 15:09:36 +02:00
commit 03f8b8a424
27 changed files with 556 additions and 490 deletions

View file

@ -1,3 +1,4 @@
use serde::{Deserialize, Serialize};
use std::hash::{BuildHasher, Hasher};
/// A dummy hasher that maps simply returns the hashed u64
@ -34,7 +35,7 @@ impl Hasher for NullHasher {
}
}
#[derive(Clone)]
#[derive(Clone, Serialize, Deserialize, Default)]
pub struct NullHasherBuilder;
impl BuildHasher for NullHasherBuilder {