We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f9d0f1 commit bc67f6bCopy full SHA for bc67f6b
1 file changed
library/std/src/sys/windows/process.rs
@@ -327,9 +327,13 @@ impl Command {
327
328
impl fmt::Debug for Command {
329
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
330
- write!(f, "{:?}", self.program)?;
+ self.program.fmt(f)?;
331
for arg in &self.args {
332
- write!(f, " {:?}", arg)?;
+ f.write_str(" ")?;
333
+ match arg {
334
+ Arg::Regular(s) => s.fmt(f),
335
+ Arg::Raw(s) => f.write_str(&s.to_string_lossy()),
336
+ }?;
337
}
338
Ok(())
339
0 commit comments