Make Uint derive Hash
This commit is contained in:
parent
22c64dc9c0
commit
71c67d9472
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "serde_bare"
|
name = "serde_bare"
|
||||||
version = "0.3.0"
|
version = "0.3.1-rei"
|
||||||
authors = ["Tadeo Kondrak <me@tadeo.ca>"]
|
authors = ["Tadeo Kondrak <me@tadeo.ca>"]
|
||||||
license = "MIT OR Apache-2.0"
|
license = "MIT OR Apache-2.0"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
|
@ -29,7 +29,7 @@ pub use error::{Error, Result};
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
pub use ser::{to_vec, to_writer, Serializer};
|
pub use ser::{to_vec, to_writer, Serializer};
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, Ord, PartialOrd, Eq, PartialEq)]
|
#[derive(Copy, Clone, Debug, Ord, PartialOrd, Eq, PartialEq, Hash)]
|
||||||
pub struct Uint(pub u64);
|
pub struct Uint(pub u64);
|
||||||
|
|
||||||
impl Default for Uint {
|
impl Default for Uint {
|
||||||
|
|
Loading…
Reference in New Issue