chore: apply rustfmt to all crates (#917)

This commit is contained in:
Carl Lerche
2019-02-21 11:56:15 -08:00
committed by GitHub
parent ab595d0825
commit 80162306e7
253 changed files with 3710 additions and 3407 deletions
+5 -7
View File
@@ -17,30 +17,28 @@ pub fn remove_dir<P: AsRef<Path>>(path: P) -> RemoveDirFuture<P> {
#[derive(Debug)]
pub struct RemoveDirFuture<P>
where
P: AsRef<Path>
P: AsRef<Path>,
{
path: P,
}
impl<P> RemoveDirFuture<P>
where
P: AsRef<Path>
P: AsRef<Path>,
{
fn new(path: P) -> RemoveDirFuture<P> {
RemoveDirFuture {
path: path,
}
RemoveDirFuture { path: path }
}
}
impl<P> Future for RemoveDirFuture<P>
where
P: AsRef<Path>
P: AsRef<Path>,
{
type Item = ();
type Error = io::Error;
fn poll(&mut self) -> Poll<Self::Item, Self::Error> {
::blocking_io(|| fs::remove_dir(&self.path) )
::blocking_io(|| fs::remove_dir(&self.path))
}
}