diff options
author | Alex Auvolat <alex@adnab.me> | 2022-07-22 18:37:20 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-07-29 12:24:48 +0200 |
commit | 0176da3ad2aae9d18cb04feb452e0243cfb940fc (patch) | |
tree | 6d8aafa5eebb19e4d15fd4bf1247836e31e767fb /src/util/async_hash.rs | |
parent | 40150527b857f10876fdfd5d0736a5df7c24d111 (diff) | |
download | garage-0176da3ad2aae9d18cb04feb452e0243cfb940fc.tar.gz garage-0176da3ad2aae9d18cb04feb452e0243cfb940fc.zip |
Make clippy happy
Diffstat (limited to 'src/util/async_hash.rs')
-rw-r--r-- | src/util/async_hash.rs | 6 |
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() + } +} |