mirror of
https://github.com/nix-community/comma.git
synced 2024-09-11 03:55:24 +03:00
fix clippy
This commit is contained in:
parent
66a5b658fe
commit
daf2e1ab84
@ -10,7 +10,7 @@ use clap::crate_version;
|
|||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
|
|
||||||
fn pick(picker: &str, derivations: &[&str]) -> Option<String> {
|
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())
|
.stdin(Stdio::piped())
|
||||||
.stdout(Stdio::piped())
|
.stdout(Stdio::piped())
|
||||||
.spawn()
|
.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)]);
|
run_cmd.args([format!("{}#{}", nixpkgs_flake, choice)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if command != "" {
|
if !command.is_empty() {
|
||||||
run_cmd.args(["--command", command]);
|
run_cmd.args(["--command", command]);
|
||||||
run_cmd.args(trail);
|
run_cmd.args(trail);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user