diff options
author | Bryan Newbold <bnewbold@archive.org> | 2022-09-07 19:59:14 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2022-09-07 19:59:14 -0700 |
commit | fd61e1aeefdfb6125e0b754d56a39e7700bb7a39 (patch) | |
tree | 19408279f3bf0fbc2b5aac43948736f00671330d /fatcat-cli/src/download.rs | |
parent | d941d472ada2b5943142751cf2c7e01b66f1d17a (diff) | |
download | fatcat-cli-fd61e1aeefdfb6125e0b754d56a39e7700bb7a39.tar.gz fatcat-cli-fd61e1aeefdfb6125e0b754d56a39e7700bb7a39.zip |
make lint (clippy) cleanups
Diffstat (limited to 'fatcat-cli/src/download.rs')
-rw-r--r-- | fatcat-cli/src/download.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fatcat-cli/src/download.rs b/fatcat-cli/src/download.rs index d8a6f8c..551d090 100644 --- a/fatcat-cli/src/download.rs +++ b/fatcat-cli/src/download.rs @@ -13,7 +13,7 @@ use std::path::PathBuf; use std::thread; use url::Url; -#[derive(Debug, PartialEq, Clone)] +#[derive(Debug, PartialEq, Eq, Clone)] pub enum DownloadStatus { Exists(String), Downloaded(String), @@ -286,7 +286,7 @@ pub fn download_release( let mut status = DownloadStatus::NoPublicFile; let specifier = re.specifier(); for fe in file_entities { - status = download_file(&fe, &specifier, output_path.clone(), show_progress)?; + status = download_file(fe, &specifier, output_path.clone(), show_progress)?; match status { DownloadStatus::Exists(_) | DownloadStatus::Downloaded(_) => break, _ => (), |