diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-04-08 17:10:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-08 17:10:00 -0400 |
commit | 2debbdacb935cfe1eb7bb8d1f40a5063b339d90b (patch) | |
tree | 317dbe65c90a10811c62bb9fd2888641af83f5da /cli/cli_behavior.rs | |
parent | 734cf781c6e606a8a836863a391c94cf4fad22d7 (diff) |
Merge Worker and Isolate types (#2078)
Reduces generics.
Diffstat (limited to 'cli/cli_behavior.rs')
-rw-r--r-- | cli/cli_behavior.rs | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/cli/cli_behavior.rs b/cli/cli_behavior.rs index 860ec76ec..510b2608c 100644 --- a/cli/cli_behavior.rs +++ b/cli/cli_behavior.rs @@ -17,24 +17,12 @@ impl CliBehavior { } } -impl IsolateStateContainer for &CliBehavior { - fn state(&self) -> Arc<IsolateState> { - self.state.clone() - } -} - -impl IsolateStateContainer for CliBehavior { - fn state(&self) -> Arc<IsolateState> { - self.state.clone() - } -} - impl Behavior for CliBehavior { fn dispatch( &mut self, control: &[u8], zero_copy: deno_buf, ) -> (bool, Box<Op>) { - ops::dispatch_all(self, control, zero_copy, ops::op_selector_std) + ops::dispatch_all(&self.state, control, zero_copy, ops::op_selector_std) } } |