mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
fs: fix tests (#916)
This commit is contained in:
parent
1cf5f73651
commit
0da649727c
@ -157,6 +157,8 @@ fn seek() {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn clone() {
|
fn clone() {
|
||||||
|
use std::io::prelude::*;
|
||||||
|
|
||||||
let dir = TmpBuilder::new()
|
let dir = TmpBuilder::new()
|
||||||
.prefix("tokio-fs-tests")
|
.prefix("tokio-fs-tests")
|
||||||
.tempdir()
|
.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![];
|
let mut dst = vec![];
|
||||||
file.read_to_end(&mut dst).unwrap();
|
file.read_to_end(&mut dst).unwrap();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user