Skip to content
Myr

Fix some warnings from clippy

Before adoption: this commit came in with the history the project adopted, so no landing records it.

I'm guessing these are new warnings from the Rust 1.65 release

authored by Thayne McCombs · committed by Thayne McCombs · parent bba7e0a · Browse files · 2 files+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−4 removed

  • other:+4 added−4 removed

2 files+4 added−4 removed

modified:src/exec/mod.rs+3 added-3 removed
146 unmodified lines
147148 for arg in &template.args {149 if arg.has_tokens() {150 path_arg = Some(arg.clone());151 } else if path_arg == None {151 } else if path_arg.is_none() {152 pre_args.push(arg.generate("", None));153 } else {154 post_args.push(arg.generate("", None));155 }
144 unmodified lines
300 ///301 /// Using the internal `args` field, and a supplied `input` variable, a `Command` will be302 /// build.303 fn generate(&self, input: &Path, path_separator: Option<&str>) -> io::Result<Command> {304 let mut cmd = Command::new(self.args[0].generate(&input, path_separator));304 let mut cmd = Command::new(self.args[0].generate(input, path_separator));305 for arg in &self.args[1..] {306 cmd.try_arg(arg.generate(&input, path_separator))?;306 cmd.try_arg(arg.generate(input, path_separator))?;307 }308 Ok(cmd)309 }310}
284 unmodified lines
modified:src/cli.rs+1 added-1 removed
805 unmodified lines
806 .num_args(1..)807 .allow_hyphen_values(true)808 .value_terminator(";")809 .value_name("cmd")810 .conflicts_with_all(&["exec", "list_details"])810 .conflicts_with_all(["exec", "list_details"])811 .help("Execute a command with all search results at once")812 .long_help(813 "Execute the given command once, with all search results as arguments.\n\814 One of the following placeholders is substituted before the command is executed:\n \
34 unmodified lines