about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2018-12-10 14:33:03 -0700
committerMichael Howell <michael@notriddle.com>2018-12-10 14:33:03 -0700
commit5438465b68fd026f68308793c82a69b241788105 (patch)
tree26f7851ed8cb5ff28b9e1a56970b9091c68f4889 /src/libstd/sys
parent08fbbbd89c2dcdbec353fb0b02ad17015284bd2a (diff)
downloadrust-5438465b68fd026f68308793c82a69b241788105.tar.gz
rust-5438465b68fd026f68308793c82a69b241788105.zip
Fix poorly-transcribed test case
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/windows/args.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/sys/windows/args.rs b/src/libstd/sys/windows/args.rs
index a0369fffa0c..62ef7a7f0f6 100644
--- a/src/libstd/sys/windows/args.rs
+++ b/src/libstd/sys/windows/args.rs
@@ -182,7 +182,7 @@ impl<'a> fmt::Debug for ArgsInnerDebug<'a> {
             }
             first = false;
 
-            fmt::Debug::fmt(i, f)?;
+            fmt::Debug::fmt(&i, f)?;
         }
         f.write_str("]")?;
         Ok(())
@@ -223,7 +223,7 @@ mod tests {
             parse_lp_cmd_line(wide.as_ptr() as *const u16, || OsString::from("TEST.EXE"))
         };
         let expected: Vec<OsString> = parts.iter().map(|k| OsString::from(k)).collect();
-        assert_eq!(parsed, expected);
+        assert_eq!(parsed.as_slice(), expected.as_slice());
     }
 
     #[test]
@@ -267,7 +267,7 @@ mod tests {
             r#"EXE "this is """all""" in the same argument""#,
             &["EXE", "this is \"all\" in the same argument"]
         );
-        chk(r#"EXE "\u{1}"""#, &["EXE", "\u{1}\""]);
+        chk(r#"EXE "a"""#, &["EXE", "a\""]);
         chk(r#"EXE "a"" a"#, &["EXE", "a\"", "a"]);
     }
 }