summaryrefslogtreecommitdiffstats
path: root/examples/download_progress
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-03-24 14:07:34 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-03-24 14:07:34 +0100
commitfd7d9622e333a0a2cd5c2e8e6cc38cc09d7981e4 (patch)
tree2f80c2582230d96d1e203cc4699329ed00fb3f2e /examples/download_progress
parent784b8ee74c15f682b5bab74ac7d475fbed20e937 (diff)
downloadiced-fd7d9622e333a0a2cd5c2e8e6cc38cc09d7981e4.tar.gz
iced-fd7d9622e333a0a2cd5c2e8e6cc38cc09d7981e4.tar.bz2
iced-fd7d9622e333a0a2cd5c2e8e6cc38cc09d7981e4.zip
Fix `Recipe::hash` in `download_progress` example
Diffstat (limited to 'examples/download_progress')
-rw-r--r--examples/download_progress/src/download.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/download_progress/src/download.rs b/examples/download_progress/src/download.rs
index 96e1dc28..f46a01f7 100644
--- a/examples/download_progress/src/download.rs
+++ b/examples/download_progress/src/download.rs
@@ -20,7 +20,9 @@ where
fn hash(&self, state: &mut H) {
use std::hash::Hash;
+
std::any::TypeId::of::<Self>().hash(state);
+ self.url.hash(state);
}
fn stream(