From d1fe5c7155d902a5949526fbb6dc6a72396ea28d Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Sun, 16 Jul 2023 13:50:04 +1000 Subject: [PATCH] Fix clippy warning in `binstalk_downloader` (#1204) Replace use of `PhantomData::default()` in `src/download.rs` with `PhantomData` since it is a unit struct. Signed-off-by: Jiahao XU --- crates/binstalk-downloader/src/download.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/binstalk-downloader/src/download.rs b/crates/binstalk-downloader/src/download.rs index bebd7bce..ae3138d2 100644 --- a/crates/binstalk-downloader/src/download.rs +++ b/crates/binstalk-downloader/src/download.rs @@ -83,7 +83,7 @@ impl Download { Self { client, url, - _digest: PhantomData::default(), + _digest: PhantomData, _checksum: Vec::new(), } } @@ -158,7 +158,7 @@ impl Download { Self { client, url, - _digest: PhantomData::default(), + _digest: PhantomData, _checksum: checksum, } }