We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Command::args
run-make-support
1 parent d68fe4e commit 3e43680Copy full SHA for 3e43680
src/tools/run-make-support/src/command.rs
@@ -75,11 +75,12 @@ impl Command {
75
/// Generic command arguments provider. Prefer specific helper methods if possible.
76
/// Note that for some executables, arguments might be platform specific. For C/C++
77
/// compilers, arguments might be platform *and* compiler specific.
78
- pub fn args<S>(&mut self, args: &[S]) -> &mut Self
+ pub fn args<S, V>(&mut self, args: V) -> &mut Self
79
where
80
S: AsRef<ffi::OsStr>,
81
+ V: AsRef<[S]>,
82
{
- self.cmd.args(args);
83
+ self.cmd.args(args.as_ref());
84
self
85
}
86
0 commit comments