diff options
| author | Bert Belder <bertbelder@gmail.com> | 2020-08-26 00:22:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-26 00:22:15 +0200 |
| commit | 9bfb0df805719cb3f022a5b5d9f9d898ae954c2e (patch) | |
| tree | 6c7d62d95fcbde54ebbe1035bdc74618c63cfbc0 /cli/ops/random.rs | |
| parent | d0ccab7fb7dd80030d3765ca9a9af44de6ecda5a (diff) | |
refactor: remove OpError, use ErrBox everywhere (#7187)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/ops/random.rs')
| -rw-r--r-- | cli/ops/random.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/ops/random.rs b/cli/ops/random.rs index 275f264f9..3ff5ad49f 100644 --- a/cli/ops/random.rs +++ b/cli/ops/random.rs @@ -1,8 +1,8 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. use super::dispatch_json::{JsonOp, Value}; -use crate::op_error::OpError; use crate::state::State; use deno_core::CoreIsolate; +use deno_core::ErrBox; use deno_core::ZeroCopyBuf; use rand::thread_rng; use rand::Rng; @@ -19,7 +19,7 @@ fn op_get_random_values( state: &Rc<State>, _args: Value, zero_copy: &mut [ZeroCopyBuf], -) -> Result<JsonOp, OpError> { +) -> Result<JsonOp, ErrBox> { assert_eq!(zero_copy.len(), 1); if let Some(seeded_rng) = &state.seeded_rng { |
