From 71c67d9472522068087bfe0a6abaa36353a5172d Mon Sep 17 00:00:00 2001 From: Olivier Date: Mon, 4 Jan 2021 10:50:40 +0000 Subject: [PATCH] Make Uint derive Hash --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1d82967..840c6a0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "serde_bare" -version = "0.3.0" +version = "0.3.1-rei" authors = ["Tadeo Kondrak "] license = "MIT OR Apache-2.0" edition = "2018" diff --git a/src/lib.rs b/src/lib.rs index 048d00e..5dd0844 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -29,7 +29,7 @@ pub use error::{Error, Result}; #[doc(inline)] 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); impl Default for Uint {