Remove the newly introduced trait impls for fixed-size arrays and use &b"..."[..] instead.

This commit is contained in:
Vadim Petrochenkov
2015-03-18 09:16:08 +03:00
parent d2cccd07bc
commit dccd17d23e
10 changed files with 159 additions and 175 deletions

View File

@@ -1231,7 +1231,7 @@ mod tests {
cmd.env("path", "foo");
cmd.env("Path", "bar");
let env = &cmd.env.unwrap();
let val = env.get(&EnvKey(CString::new(b"PATH").unwrap()));
assert!(val.unwrap() == &CString::new(b"bar").unwrap());
let val = env.get(&EnvKey(CString::new("PATH").unwrap()));
assert!(val.unwrap() == &CString::new("bar").unwrap());
}
}