aboutsummaryrefslogtreecommitdiff
path: root/src/util/async_hash.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/async_hash.rs')
-rw-r--r--src/util/async_hash.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/async_hash.rs b/src/util/async_hash.rs
index be0535de..fa8ee7ff 100644
--- a/src/util/async_hash.rs
+++ b/src/util/async_hash.rs
@@ -56,3 +56,9 @@ impl<D: Digest> AsyncHasher<D> {
self.task.await.unwrap()
}
}
+
+impl<D: Digest> Default for AsyncHasher<D> {
+ fn default() -> Self {
+ Self::new()
+ }
+}