Skip to content

Commit 3e43680

Browse files
Improve Command::args API in run-make-support
1 parent d68fe4e commit 3e43680

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/tools/run-make-support/src/command.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,12 @@ impl Command {
7575
/// Generic command arguments provider. Prefer specific helper methods if possible.
7676
/// Note that for some executables, arguments might be platform specific. For C/C++
7777
/// compilers, arguments might be platform *and* compiler specific.
78-
pub fn args<S>(&mut self, args: &[S]) -> &mut Self
78+
pub fn args<S, V>(&mut self, args: V) -> &mut Self
7979
where
8080
S: AsRef<ffi::OsStr>,
81+
V: AsRef<[S]>,
8182
{
82-
self.cmd.args(args);
83+
self.cmd.args(args.as_ref());
8384
self
8485
}
8586

0 commit comments

Comments
 (0)