diff options
Diffstat (limited to 'cli/state.rs')
-rw-r--r-- | cli/state.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cli/state.rs b/cli/state.rs index 5f2aeb3ff..fdc61cf16 100644 --- a/cli/state.rs +++ b/cli/state.rs @@ -21,6 +21,7 @@ use std::cell::Cell; use std::cell::RefCell; use std::collections::HashMap; use std::path::Path; +use std::path::PathBuf; use std::pin::Pin; use std::rc::Rc; use std::str; @@ -315,3 +316,13 @@ impl CliState { } } } + +impl deno_fetch::FetchPermissions for CliState { + fn check_net_url(&self, url: &url::Url) -> Result<(), AnyError> { + CliState::check_net_url(self, url) + } + + fn check_read(&self, p: &PathBuf) -> Result<(), AnyError> { + CliState::check_read(self, p) + } +} |