mirror of https://github.com/astral-sh/uv
fmt
This commit is contained in:
parent
0910d153c8
commit
d3bbb110a8
|
|
@ -161,10 +161,13 @@ pub(crate) async fn pip_sync(
|
||||||
use distribution_types::RemoteSource;
|
use distribution_types::RemoteSource;
|
||||||
remote.iter().map(|d| d.size().unwrap()).sum()
|
remote.iter().map(|d| d.size().unwrap()).sum()
|
||||||
};
|
};
|
||||||
let num_source_dists: usize = remote.iter().map(|d| match d {
|
let num_source_dists: usize = remote
|
||||||
|
.iter()
|
||||||
|
.map(|d| match d {
|
||||||
distribution_types::Dist::Built(_) => 0,
|
distribution_types::Dist::Built(_) => 0,
|
||||||
distribution_types::Dist::Source(_) => 1,
|
distribution_types::Dist::Source(_) => 1,
|
||||||
}).sum();
|
})
|
||||||
|
.sum();
|
||||||
|
|
||||||
// TODO(konstin): Also check the cache whether any cached or installed dist is already known to
|
// TODO(konstin): Also check the cache whether any cached or installed dist is already known to
|
||||||
// have been yanked, we currently don't show this message on the second run anymore
|
// have been yanked, we currently don't show this message on the second run anymore
|
||||||
|
|
@ -241,11 +244,7 @@ pub(crate) async fn pip_sync(
|
||||||
writeln!(
|
writeln!(
|
||||||
printer,
|
printer,
|
||||||
"{}",
|
"{}",
|
||||||
format!(
|
format!("- number of source distributions: {}", num_source_dists).dimmed()
|
||||||
"- number of source distributions: {}",
|
|
||||||
num_source_dists
|
|
||||||
)
|
|
||||||
.dimmed()
|
|
||||||
)?;
|
)?;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue