Update Tokio to Rust 2018 (#1082)

This commit is contained in:
Carl Lerche
2019-05-14 10:27:36 -07:00
committed by GitHub
parent 79d8820050
commit cb4aea394e
343 changed files with 1725 additions and 2813 deletions
+2 -3
View File
@@ -1,11 +1,10 @@
//! Unix-specific extensions to primitives in the `tokio_fs` module.
use futures::{Future, Poll};
use std::io;
use std::os::unix::fs;
use std::path::Path;
use futures::{Future, Poll};
/// Creates a new symbolic link on the filesystem.
///
/// The `dst` path will be a symbolic link pointing to the `src` path.
@@ -47,6 +46,6 @@ where
type Error = io::Error;
fn poll(&mut self) -> Poll<Self::Item, Self::Error> {
::blocking_io(|| fs::symlink(&self.src, &self.dst))
crate::blocking_io(|| fs::symlink(&self.src, &self.dst))
}
}
+2 -3
View File
@@ -1,9 +1,8 @@
use futures::{Future, Poll};
use std::io;
use std::os::windows::fs;
use std::path::Path;
use futures::{Future, Poll};
/// Creates a new directory symlink on the filesystem.
///
/// The `dst` path will be a directory symbolic link pointing to the `src`
@@ -46,6 +45,6 @@ where
type Error = io::Error;
fn poll(&mut self) -> Poll<Self::Item, Self::Error> {
::blocking_io(|| fs::symlink_dir(&self.src, &self.dst))
crate::blocking_io(|| fs::symlink_dir(&self.src, &self.dst))
}
}
+2 -3
View File
@@ -1,9 +1,8 @@
use futures::{Future, Poll};
use std::io;
use std::os::windows::fs;
use std::path::Path;
use futures::{Future, Poll};
/// Creates a new file symbolic link on the filesystem.
///
/// The `dst` path will be a file symbolic link pointing to the `src`
@@ -46,6 +45,6 @@ where
type Error = io::Error;
fn poll(&mut self) -> Poll<Self::Item, Self::Error> {
::blocking_io(|| fs::symlink_file(&self.src, &self.dst))
crate::blocking_io(|| fs::symlink_file(&self.src, &self.dst))
}
}