fs: fix tests (#916)

This commit is contained in:
Carl Lerche 2019-02-20 21:56:23 -08:00 committed by GitHub
parent 1cf5f73651
commit 0da649727c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,6 +157,8 @@ fn seek() {
#[test]
fn clone() {
use std::io::prelude::*;
let dir = TmpBuilder::new()
.prefix("tokio-fs-tests")
.tempdir()
@ -179,7 +181,7 @@ fn clone() {
}),
);
let mut file = StdFile::open(&file_path).unwrap();
let mut file = std::fs::File::open(&file_path).unwrap();
let mut dst = vec![];
file.read_to_end(&mut dst).unwrap();