mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
Rename deno::state::State to deno::state::CliState (#7480)
This commit is contained in:
parent
192b8f4b99
commit
70f070706d
6 changed files with 43 additions and 43 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue