From 2cc90617dd2e1be5d772277841a85f990e5ee72f Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 14 Feb 2019 12:33:20 +0100 Subject: [PATCH] tools/fs: mark ReadDir as Send Signed-off-by: Wolfgang Bumiller --- src/tools/fs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }) }