summaryrefslogtreecommitdiff
path: root/ext/fs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fs')
-rw-r--r--ext/fs/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/fs/lib.rs b/ext/fs/lib.rs
index 2dce04b32..8eb6f2764 100644
--- a/ext/fs/lib.rs
+++ b/ext/fs/lib.rs
@@ -89,9 +89,9 @@ impl FsPermissions for deno_permissions::PermissionsContainer {
api_name: &str,
) -> Result<Cow<'a, Path>, FsError> {
if resolved {
- self.check_special_file(path, api_name).map_err(|_| {
- std::io::Error::from(std::io::ErrorKind::PermissionDenied)
- })?;
+ self
+ .check_special_file(path, api_name)
+ .map_err(FsError::PermissionDenied)?;
return Ok(Cow::Borrowed(path));
}