mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-15 15:16:37 +00:00
Rename option to --disable-telemetry
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
397af7e45c
commit
69cf1504b3
4 changed files with 4 additions and 4 deletions
|
@ -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.
|
||||
///
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -55,5 +55,5 @@ pub struct Options {
|
|||
pub registry: Registry,
|
||||
|
||||
pub signature_policy: SignaturePolicy,
|
||||
pub disable_quick_install_stats: bool,
|
||||
pub disable_telemetry: bool,
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue