mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-25 12:00:35 +00:00
fs: fix tests (#916)
This commit is contained in:
parent
1cf5f73651
commit
0da649727c
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user