File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1595,7 +1595,7 @@ pub(crate) fn runnable(
15951595 environment,
15961596 cwd : cwd. into ( ) ,
15971597 program : program. to_string ( ) ,
1598- args : args. to_vec ( ) . into_iter ( ) . chain ( executable_args) . collect ( ) ,
1598+ args : args. iter ( ) . cloned ( ) . chain ( executable_args) . collect ( ) ,
15991599 } ) ,
16001600 } ) ,
16011601 _ => None ,
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ impl CargoTargetSpec {
239239
240240 let replace_placeholders = |arg| match & spec {
241241 Some ( spec) if arg == "${package}" => spec. package . clone ( ) ,
242- Some ( spec) if arg == "${target_arg}" => target_arg ( spec. target_kind ) . to_string ( ) ,
242+ Some ( spec) if arg == "${target_arg}" => target_arg ( spec. target_kind ) . to_owned ( ) ,
243243 Some ( spec) if arg == "${target}" => spec. target . clone ( ) ,
244244 _ => arg,
245245 } ;
You can’t perform that action at this time.
0 commit comments