diff --git a/src/tools/fs.rs b/src/tools/fs.rs index 72a530d8..6e0b1271 100644 --- a/src/tools/fs.rs +++ b/src/tools/fs.rs @@ -117,7 +117,7 @@ pub fn scan_subdir<'a, P: ?Sized + nix::NixPath>( dirfd: RawFd, path: &P, regex: &'a regex::Regex, -) -> Result> + 'a, Error> { +) -> Result> + 'a, nix::Error> { Ok(read_subdir(dirfd, path)?.filter_file_name_regex(regex)) }