File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -807,7 +807,7 @@ impl clap::Args for Exec {
807
807
. allow_hyphen_values ( true )
808
808
. value_terminator ( ";" )
809
809
. value_name ( "cmd" )
810
- . conflicts_with_all ( & [ "exec" , "list_details" ] )
810
+ . conflicts_with_all ( [ "exec" , "list_details" ] )
811
811
. help ( "Execute a command with all search results at once" )
812
812
. long_help (
813
813
"Execute the given command once, with all search results as arguments.\n \
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ impl CommandBuilder {
148
148
for arg in & template. args {
149
149
if arg. has_tokens ( ) {
150
150
path_arg = Some ( arg. clone ( ) ) ;
151
- } else if path_arg == None {
151
+ } else if path_arg. is_none ( ) {
152
152
pre_args. push ( arg. generate ( "" , None ) ) ;
153
153
} else {
154
154
post_args. push ( arg. generate ( "" , None ) ) ;
@@ -301,9 +301,9 @@ impl CommandTemplate {
301
301
/// Using the internal `args` field, and a supplied `input` variable, a `Command` will be
302
302
/// build.
303
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
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
307
}
308
308
Ok ( cmd)
309
309
}
You can’t perform that action at this time.
0 commit comments