Skip to content

Commit 0e1e6a9

Browse files
committed
Use more compact notation
I'm not sure if this is better, but the new genericity distracts less from what the function is really about when prsented this way.
1 parent c202084 commit 0e1e6a9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/tools/src/lib.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -589,15 +589,11 @@ const NULL_DEVICE: &str = "NUL";
589589
#[cfg(not(windows))]
590590
const NULL_DEVICE: &str = "/dev/null";
591591

592-
fn configure_command<'a, I, S>(
592+
fn configure_command<'a, I: IntoIterator<Item = S>, S: AsRef<OsStr>>(
593593
cmd: &'a mut std::process::Command,
594594
args: I,
595595
script_result_directory: &Path,
596-
) -> &'a mut std::process::Command
597-
where
598-
I: IntoIterator<Item = S>,
599-
S: AsRef<OsStr>,
600-
{
596+
) -> &'a mut std::process::Command {
601597
let mut msys_for_git_bash_on_windows = env::var_os("MSYS").unwrap_or_default();
602598
msys_for_git_bash_on_windows.push(" winsymlinks:nativestrict");
603599
cmd.args(args)

0 commit comments

Comments
 (0)