diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2014-11-21 01:20:04 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2014-12-03 10:41:48 -0500 |
| commit | 09707d70a48b7bb1a180f44e233dfe36b196ad46 (patch) | |
| tree | 58baa2e18e0ac3f71d06bbaf38cdb08e8e67dcca /src/libstd | |
| parent | eac635de01d083e0423dcf9e548cf522ec41015d (diff) | |
| download | rust-09707d70a48b7bb1a180f44e233dfe36b196ad46.tar.gz rust-09707d70a48b7bb1a180f44e233dfe36b196ad46.zip | |
Fix fallout
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io/fs.rs | 2 | ||||
| -rw-r--r-- | src/libstd/os.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/io/fs.rs b/src/libstd/io/fs.rs index bd334f52628..fd6b57d096a 100644 --- a/src/libstd/io/fs.rs +++ b/src/libstd/io/fs.rs @@ -1528,7 +1528,7 @@ mod test { check!(File::create(&tmpdir.join("test")).write(&bytes)); let actual = check!(File::open(&tmpdir.join("test")).read_to_end()); - assert!(actual.as_slice() == &bytes); + assert!(actual == bytes.as_slice()); } #[test] diff --git a/src/libstd/os.rs b/src/libstd/os.rs index 90203709627..0abd030a163 100644 --- a/src/libstd/os.rs +++ b/src/libstd/os.rs @@ -2034,7 +2034,7 @@ mod tests { fn split_paths_windows() { fn check_parse(unparsed: &str, parsed: &[&str]) -> bool { split_paths(unparsed) == - parsed.iter().map(|s| Path::new(*s)).collect() + parsed.iter().map(|s| Path::new(*s)).collect::<Vec<_>>() } assert!(check_parse("", &mut [""])); @@ -2054,7 +2054,7 @@ mod tests { fn split_paths_unix() { fn check_parse(unparsed: &str, parsed: &[&str]) -> bool { split_paths(unparsed) == - parsed.iter().map(|s| Path::new(*s)).collect() + parsed.iter().map(|s| Path::new(*s)).collect::<Vec<_>>() } assert!(check_parse("", &mut [""])); |
