aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-07-22 18:37:20 +0200
committerAlex Auvolat <alex@adnab.me>2022-07-29 12:24:48 +0200
commit0176da3ad2aae9d18cb04feb452e0243cfb940fc (patch)
tree6d8aafa5eebb19e4d15fd4bf1247836e31e767fb
parent40150527b857f10876fdfd5d0736a5df7c24d111 (diff)
downloadgarage-0176da3ad2aae9d18cb04feb452e0243cfb940fc.tar.gz
garage-0176da3ad2aae9d18cb04feb452e0243cfb940fc.zip
Make clippy happy
-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()
+ }
+}