mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-15 15:16:37 +00:00
Fix resolve.rs
And optimize sending telemtry: Remove unnecessary `<Arc as Clone>::clone` Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
7d2c95c91c
commit
aefc4591a9
1 changed files with 3 additions and 3 deletions
|
@ -204,7 +204,7 @@ async fn resolve_inner(
|
|||
Ok(bin_files) => {
|
||||
if !bin_files.is_empty() {
|
||||
return Ok(Resolution::Fetch(Box::new(ResolutionFetch {
|
||||
fetcher.clone(),
|
||||
fetcher: fetcher.clone(),
|
||||
new_version: package_info.version,
|
||||
name: package_info.name,
|
||||
version_req: version_req_str,
|
||||
|
@ -251,8 +251,8 @@ async fn resolve_inner(
|
|||
}
|
||||
|
||||
if !opts.disable_telemetry {
|
||||
for fetcher in &handles {
|
||||
fetcher.clone().report_to_upstream();
|
||||
for fetcher in handles {
|
||||
fetcher.report_to_upstream();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue