diff options
Diffstat (limited to 'ext/node/lib.rs')
-rw-r--r-- | ext/node/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/node/lib.rs b/ext/node/lib.rs index e63c73537..84530423f 100644 --- a/ext/node/lib.rs +++ b/ext/node/lib.rs @@ -44,13 +44,13 @@ pub trait NodeEnv { } pub trait NodePermissions { - fn check_read(&mut self, path: &Path) -> Result<(), AnyError>; + fn check_read(&self, path: &Path) -> Result<(), AnyError>; } pub(crate) struct AllowAllNodePermissions; impl NodePermissions for AllowAllNodePermissions { - fn check_read(&mut self, _path: &Path) -> Result<(), AnyError> { + fn check_read(&self, _path: &Path) -> Result<(), AnyError> { Ok(()) } } @@ -164,7 +164,7 @@ pub trait NpmResolver: std::fmt::Debug + Send + Sync { fn ensure_read_permission( &self, - permissions: &mut dyn NodePermissions, + permissions: &dyn NodePermissions, path: &Path, ) -> Result<(), AnyError>; } |