Rename option to --disable-telemetry

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2024-07-26 00:55:13 +10:00 committed by Jiahao XU
parent 397af7e45c
commit 69cf1504b3
4 changed files with 4 additions and 4 deletions

View file

@ -225,7 +225,7 @@ pub struct Args {
/// statistics of popular crates by default, by sending the crate, version and
/// target to https://warehouse-clerk-tmp.vercel.app/api/crate
#[clap(help_heading = "Options", long)]
pub(crate) disable_quick_install_stats: bool,
pub(crate) disable_telemetry: bool,
/// Install binaries in a custom location.
///

View file

@ -207,7 +207,7 @@ pub fn install_crates(
} else {
SignaturePolicy::IfPresent
},
disable_quick_install_stats: args.disable_quick_install_stats,
disable_telemetry: args.disable_telemetry,
});
// Destruct args before any async function to reduce size of the future

View file

@ -55,5 +55,5 @@ pub struct Options {
pub registry: Registry,
pub signature_policy: SignaturePolicy,
pub disable_quick_install_stats: bool,
pub disable_telemetry: bool,
}

View file

@ -175,7 +175,7 @@ async fn resolve_inner(
);
}
if !opts.disable_quick_install_stats {
if !opts.disable_telemetry {
for fetcher in &handles {
fetcher.clone().report_to_upstream();
}