Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test clippy gha #71

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@
command: Subcommand,
#[clap(
name = "config",
short,
long,
value_name = "PATH",
default_value = DEFAULT_CONFIG,
short,
long,
value_name = "PATH",
default_value = DEFAULT_CONFIG,
)]
config_path: PathBuf,
}
Expand All @@ -81,6 +81,7 @@
}

pub fn select_input<T: Display>(choices: &[T], prompt: String) -> Result<&T> {
let test = "asdf";

Check warning on line 84 in src/cli.rs

View workflow job for this annotation

GitHub Actions / test

unused variable: `test`

Check failure on line 84 in src/cli.rs

View workflow job for this annotation

GitHub Actions / clippy

unused variable: `test`

error: unused variable: `test` --> src/cli.rs:84:9 | 84 | let test = "asdf"; | ^^^^ help: if this is intentional, prefix it with an underscore: `_test` | = note: `-D unused-variables` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unused_variables)]`
let idx = Select::with_theme(&ColorfulTheme::default())
.with_prompt(prompt)
.items(choices)
Expand Down
Loading