From a576e6685b380343b19f341eba64c12b1eeeb3b8 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 22 Apr 2021 16:01:49 +0200 Subject: [PATCH] tools::fs::scan_subdir: use nix::Error instead of anyhow allows using SysError trait on it Signed-off-by: Wolfgang Bumiller --- src/tools/fs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) }