diff options
Diffstat (limited to 'cli/deno_error.rs')
-rw-r--r-- | cli/deno_error.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/cli/deno_error.rs b/cli/deno_error.rs index 3b7dbcde8..e024a396c 100644 --- a/cli/deno_error.rs +++ b/cli/deno_error.rs @@ -205,18 +205,6 @@ impl GetErrorKind for ReadlineError { } } -impl GetErrorKind for serde_json::error::Error { - fn kind(&self) -> ErrorKind { - use serde_json::error::*; - match self.classify() { - Category::Io => ErrorKind::InvalidInput, - Category::Syntax => ErrorKind::InvalidInput, - Category::Data => ErrorKind::InvalidData, - Category::Eof => ErrorKind::UnexpectedEof, - } - } -} - #[cfg(unix)] mod unix { use super::{ErrorKind, GetErrorKind}; @@ -263,11 +251,6 @@ impl GetErrorKind for dyn AnyError { .or_else(|| self.downcast_ref::<uri::InvalidUri>().map(Get::kind)) .or_else(|| self.downcast_ref::<url::ParseError>().map(Get::kind)) .or_else(|| self.downcast_ref::<ReadlineError>().map(Get::kind)) - .or_else(|| { - self - .downcast_ref::<serde_json::error::Error>() - .map(Get::kind) - }) .or_else(|| unix_error_kind(self)) .unwrap_or_else(|| { panic!("Can't get ErrorKind for {:?}", self); |