mirror of
https://github.com/nix-community/comma.git
synced 2024-07-14 15:30:36 +03:00
fix clippy
This commit is contained in:
parent
66a5b658fe
commit
daf2e1ab84
@ -10,7 +10,7 @@ use clap::crate_version;
|
||||
use clap::Parser;
|
||||
|
||||
fn pick(picker: &str, derivations: &[&str]) -> Option<String> {
|
||||
let mut picker_process = Command::new(&picker)
|
||||
let mut picker_process = Command::new(picker)
|
||||
.stdin(Stdio::piped())
|
||||
.stdout(Stdio::piped())
|
||||
.spawn()
|
||||
@ -50,7 +50,7 @@ fn run_command_or_open_shell(use_channel: bool, choice: &str, command: &str, tra
|
||||
run_cmd.args([format!("{}#{}", nixpkgs_flake, choice)]);
|
||||
}
|
||||
|
||||
if command != "" {
|
||||
if !command.is_empty() {
|
||||
run_cmd.args(["--command", command]);
|
||||
run_cmd.args(trail);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user