From b4681cca12822f5045b89a354d879cb8394a09af Mon Sep 17 00:00:00 2001 From: folex <0xdxdy@gmail.com> Date: Tue, 19 May 2020 23:10:33 +0300 Subject: [PATCH] fix wasm build --- Cargo.toml | 1 + protocols/kad/src/record.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index a998af69..26d2bd78 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -124,3 +124,4 @@ libp2p-core = { path = "core" } # visible via dependency mechanics (i.e., not visible HERE) [patch.crates-io] libp2p-core = { path = "core" } +wasm-timer = { git = "https://github.com/fluencelabs/wasm-timer", branch = "saturating_duration_since" } diff --git a/protocols/kad/src/record.rs b/protocols/kad/src/record.rs index ec13bfb1..e371d58e 100644 --- a/protocols/kad/src/record.rs +++ b/protocols/kad/src/record.rs @@ -70,7 +70,7 @@ impl From for Key { } /// A record stored in the DHT. -#[derive(Clone, Debug, Eq, PartialEq, Hash)] +#[derive(Clone, Debug, Eq, PartialEq)] pub struct Record { /// Key of the record. pub key: Key,