diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-09-12 19:53:57 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-12 11:53:57 +0200 |
commit | 10fbfcbc79eb50cb7669b4aaf67f957d97d8d93b (patch) | |
tree | 99bbe8fcf2bb554f2203d990252556924e1cc18c /cli/ops/errors.rs | |
parent | 5276cc85923a1791bf73a91b05c27fbdeeaa6f9b (diff) |
refactor: improve tsc diagnostics (#7420)
Diffstat (limited to 'cli/ops/errors.rs')
-rw-r--r-- | cli/ops/errors.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/ops/errors.rs b/cli/ops/errors.rs index 40ec1da30..c1b07a9a2 100644 --- a/cli/ops/errors.rs +++ b/cli/ops/errors.rs @@ -1,6 +1,6 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -use crate::diagnostics::Diagnostic; +use crate::diagnostics::Diagnostics; use crate::source_maps::get_orig_position; use crate::source_maps::CachedMaps; use deno_core::ErrBox; @@ -52,6 +52,6 @@ fn op_format_diagnostic( args: Value, _zero_copy: &mut [ZeroCopyBuf], ) -> Result<Value, ErrBox> { - let diagnostic = serde_json::from_value::<Diagnostic>(args)?; + let diagnostic: Diagnostics = serde_json::from_value(args)?; Ok(json!(diagnostic.to_string())) } |