Skip to content

Commit f283646

Browse files
committed
style: fix clippy warnings
1 parent f4ba136 commit f283646

File tree

3 files changed

+49
-49
lines changed

3 files changed

+49
-49
lines changed

src/bin/jlpkg.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use anyhow::Result;
2-
use clap::{CommandFactory, Parser, Subcommand, ValueEnum};
2+
use clap::{Parser, Subcommand, ValueEnum};
33
use juliaup::cli::CompletionShell;
44

55
// IMPORTANT: This CLI wrapper for Julia's Pkg does NOT include the following REPL-only commands:
@@ -380,7 +380,7 @@ fn parse_arguments(args: &[String]) -> ParsedArgs {
380380

381381
/// Show help message and exit
382382
fn show_help() -> Result<std::process::ExitCode> {
383-
match Cli::try_parse_from(&["jlpkg", "--help"]) {
383+
match Cli::try_parse_from(["jlpkg", "--help"]) {
384384
Ok(_) => {}
385385
Err(e) => {
386386
// Clap returns an error for --help but prints to stderr

tests/jlpkg_parity_test.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fn test_status_parity() {
5353
// Run with julia
5454
let julia_output = julia()
5555
.current_dir(&temp_dir)
56-
.args(&["--project=.", "--startup-file=no", "--threads=auto", "-e"])
56+
.args(["--project=.", "--startup-file=no", "--threads=auto", "-e"])
5757
.arg("using Pkg; isdefined(Pkg.REPLMode, :PRINTED_REPL_WARNING) && (Pkg.REPLMode.PRINTED_REPL_WARNING[] = true); Pkg.REPLMode.pkgstr(\"status\")")
5858
.output()
5959
.unwrap();
@@ -89,17 +89,17 @@ fn test_help_subcommands() {
8989

9090
for cmd in subcommands {
9191
// Test basic help
92-
jlpkg().args(&[cmd, "--help"]).assert().success();
92+
jlpkg().args([cmd, "--help"]).assert().success();
9393

9494
// Test help with Julia flags before
9595
jlpkg()
96-
.args(&["--project=/tmp", cmd, "--help"])
96+
.args(["--project=/tmp", cmd, "--help"])
9797
.assert()
9898
.success();
9999

100100
// Test help with multiple Julia flags
101101
jlpkg()
102-
.args(&["--threads=4", "--color=no", cmd, "--help"])
102+
.args(["--threads=4", "--color=no", cmd, "--help"])
103103
.assert()
104104
.success();
105105
}

0 commit comments

Comments
 (0)