mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 22:30:03 +00:00
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:
parent
65670224b8
commit
d1fe5c7155
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue