auto merge of #6960 : msullivan/rust/fix-pollution, r=brson
This commit is contained in:
commit
4a19af1b03
|
@ -20,7 +20,7 @@ use std::uint;
|
||||||
|
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
let dir = tempfile::mkdtemp(&Path("."), "").unwrap();
|
let dir = tempfile::mkdtemp(&Path("."), "").unwrap();
|
||||||
let path = dir.with_filename("file");
|
let path = dir.push("file");
|
||||||
|
|
||||||
{
|
{
|
||||||
match io::file_writer(&path, [io::Create, io::Truncate]) {
|
match io::file_writer(&path, [io::Create, io::Truncate]) {
|
||||||
|
@ -36,5 +36,6 @@ pub fn main() {
|
||||||
assert!(path.exists());
|
assert!(path.exists());
|
||||||
assert_eq!(path.get_size(), Some(1000));
|
assert_eq!(path.get_size(), Some(1000));
|
||||||
|
|
||||||
|
os::remove_file(&path);
|
||||||
os::remove_dir(&dir);
|
os::remove_dir(&dir);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue