diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2020-09-14 21:22:32 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-14 21:22:32 -0400 |
| commit | 70f070706d4de048e1430eebcc0d8de3b469a5bc (patch) | |
| tree | c3769eb8da482f37e5c7c06530a820a34d213759 /cli/ops | |
| parent | 192b8f4b995202422af94ea014df82139628ae54 (diff) | |
Rename deno::state::State to deno::state::CliState (#7480)
Diffstat (limited to 'cli/ops')
| -rw-r--r-- | cli/ops/mod.rs | 8 | ||||
| -rw-r--r-- | cli/ops/worker_host.rs | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/cli/ops/mod.rs b/cli/ops/mod.rs index 673f00748..1e622463e 100644 --- a/cli/ops/mod.rs +++ b/cli/ops/mod.rs @@ -60,12 +60,12 @@ where } /// Helper for extracting the commonly used state. Used for sync ops. -pub fn cli_state(state: &OpState) -> Rc<crate::state::State> { - state.borrow::<Rc<crate::state::State>>().clone() +pub fn cli_state(state: &OpState) -> Rc<crate::state::CliState> { + state.borrow::<Rc<crate::state::CliState>>().clone() } /// Helper for extracting the commonly used state. Used for async ops. -pub fn cli_state2(state: &Rc<RefCell<OpState>>) -> Rc<crate::state::State> { +pub fn cli_state2(state: &Rc<RefCell<OpState>>) -> Rc<crate::state::CliState> { let state = state.borrow(); - state.borrow::<Rc<crate::state::State>>().clone() + state.borrow::<Rc<crate::state::CliState>>().clone() } diff --git a/cli/ops/worker_host.rs b/cli/ops/worker_host.rs index 392e43dc6..e9e4ac212 100644 --- a/cli/ops/worker_host.rs +++ b/cli/ops/worker_host.rs @@ -41,7 +41,7 @@ fn create_web_worker( specifier: ModuleSpecifier, has_deno_namespace: bool, ) -> Result<WebWorker, AnyError> { - let cli_state = crate::state::State::new_for_worker( + let cli_state = crate::state::CliState::new_for_worker( global_state, Some(permissions), specifier, |
