diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2022-11-17 22:59:10 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-18 02:59:10 +0100 |
commit | 238590aa9fdfe2aac04bb96abad2f2d2feb3101a (patch) | |
tree | f8fa04e39baecb5460076c1329ca38ae31f440b6 /cli/args/flags.rs | |
parent | 483c10c94b8a5de49cee4c4b9a3ce74726501c8a (diff) |
chore: use Rust 1.65.0 (#16688)
Diffstat (limited to 'cli/args/flags.rs')
-rw-r--r-- | cli/args/flags.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs index 0c3caf0a1..e322aa1e7 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -637,7 +637,7 @@ fn clap_root(version: &str) -> Command { .help("Set log level") .hide(true) .takes_value(true) - .possible_values(&["debug", "info"]) + .possible_values(["debug", "info"]) .global(true), ) .arg( @@ -811,7 +811,7 @@ fn compile_subcommand<'a>() -> Command<'a> { .long("target") .help("Target OS architecture") .takes_value(true) - .possible_values(&[ + .possible_values([ "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc", "x86_64-apple-darwin", @@ -848,7 +848,7 @@ fn completions_subcommand<'a>() -> Command<'a> { .disable_help_subcommand(true) .arg( Arg::new("shell") - .possible_values(&["bash", "fish", "powershell", "zsh", "fig"]) + .possible_values(["bash", "fish", "powershell", "zsh", "fig"]) .required(true), ) .about("Generate shell completions") @@ -1049,7 +1049,7 @@ This command has implicit access to all permissions (--allow-all).", .help("Set standard input (stdin) content type") .takes_value(true) .default_value("js") - .possible_values(&["ts", "tsx", "js", "jsx"]), + .possible_values(["ts", "tsx", "js", "jsx"]), ) .arg( Arg::new("print") @@ -1106,7 +1106,7 @@ Ignore formatting a file by adding an ignore comment at the top of the file: .help("Set standard input (stdin) content type") .takes_value(true) .default_value("ts") - .possible_values(&["ts", "tsx", "js", "jsx", "md", "json", "jsonc"]), + .possible_values(["ts", "tsx", "js", "jsx", "md", "json", "jsonc"]), ) .arg( Arg::new("ignore") @@ -1165,7 +1165,7 @@ Ignore formatting a file by adding an ignore comment at the top of the file: Arg::new("options-prose-wrap") .long("options-prose-wrap") .takes_value(true) - .possible_values(&["always", "never", "preserve"]) + .possible_values(["always", "never", "preserve"]) .help("Define how prose should be wrapped. Defaults to always."), ) } |