diff --git a/src/tools/fs.rs b/src/tools/fs.rs index f000bfac..b82e984b 100644 --- a/src/tools/fs.rs +++ b/src/tools/fs.rs @@ -76,7 +76,7 @@ impl ReadDirEntry { // This is simply a wrapper with a shorter type name mapping nix::Error to failure::Error. /// Wrapper over a pair of `nix::dir::Dir` and `nix::dir::Iter`, returned by `read_subdir()`. pub struct ReadDir { - iter: Tied>>, + iter: Tied> + Send>, dir_fd: RawFd, } @@ -100,7 +100,7 @@ pub fn read_subdir(dirfd: RawFd, path: &P) -> Result>> + Box::new(unsafe { (*dir).iter() }) as Box> + Send> }); Ok(ReadDir { iter, dir_fd: fd }) }