From 46d76a7562025374600a7f866dfc68c1b7e268e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 30 Dec 2019 14:57:17 +0100 Subject: upgrade: Tokio 0.2 (#3418) --- cli/deno_error.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cli/deno_error.rs') diff --git a/cli/deno_error.rs b/cli/deno_error.rs index 8d0eea201..d74483df9 100644 --- a/cli/deno_error.rs +++ b/cli/deno_error.rs @@ -211,6 +211,7 @@ impl GetErrorKind for url::ParseError { } RelativeUrlWithoutBase => ErrorKind::RelativeUrlWithoutBase, SetHostOnCannotBeABaseUrl => ErrorKind::SetHostOnCannotBeABaseUrl, + _ => ErrorKind::Other, } } } @@ -231,7 +232,7 @@ impl GetErrorKind for reqwest::Error { fn kind(&self) -> ErrorKind { use self::GetErrorKind as Get; - match self.get_ref() { + match self.source() { Some(err_ref) => None .or_else(|| err_ref.downcast_ref::().map(Get::kind)) .or_else(|| err_ref.downcast_ref::().map(Get::kind)) @@ -242,7 +243,7 @@ impl GetErrorKind for reqwest::Error { .map(Get::kind) }) .unwrap_or_else(|| ErrorKind::HttpOther), - _ => ErrorKind::HttpOther, + None => ErrorKind::HttpOther, } } } -- cgit v1.2.3