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 <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2023-07-16 13:50:04 +10:00 committed by GitHub
parent 65670224b8
commit d1fe5c7155
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,7 +83,7 @@ impl Download {
Self { Self {
client, client,
url, url,
_digest: PhantomData::default(), _digest: PhantomData,
_checksum: Vec::new(), _checksum: Vec::new(),
} }
} }
@ -158,7 +158,7 @@ impl<D: Digest> Download<D> {
Self { Self {
client, client,
url, url,
_digest: PhantomData::default(), _digest: PhantomData,
_checksum: checksum, _checksum: checksum,
} }
} }