Skip to content

Commit 5438465

Browse files
committed
Fix poorly-transcribed test case
1 parent 08fbbbd commit 5438465

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libstd/sys/windows/args.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ impl<'a> fmt::Debug for ArgsInnerDebug<'a> {
182182
}
183183
first = false;
184184

185-
fmt::Debug::fmt(i, f)?;
185+
fmt::Debug::fmt(&i, f)?;
186186
}
187187
f.write_str("]")?;
188188
Ok(())
@@ -223,7 +223,7 @@ mod tests {
223223
parse_lp_cmd_line(wide.as_ptr() as *const u16, || OsString::from("TEST.EXE"))
224224
};
225225
let expected: Vec<OsString> = parts.iter().map(|k| OsString::from(k)).collect();
226-
assert_eq!(parsed, expected);
226+
assert_eq!(parsed.as_slice(), expected.as_slice());
227227
}
228228

229229
#[test]
@@ -267,7 +267,7 @@ mod tests {
267267
r#"EXE "this is """all""" in the same argument""#,
268268
&["EXE", "this is \"all\" in the same argument"]
269269
);
270-
chk(r#"EXE "\u{1}"""#, &["EXE", "\u{1}\""]);
270+
chk(r#"EXE "a"""#, &["EXE", "a\""]);
271271
chk(r#"EXE "a"" a"#, &["EXE", "a\"", "a"]);
272272
}
273273
}

0 commit comments

Comments
 (0)