From 06353fbb1aa2655cd8064ac356766fd6be9fc162 Mon Sep 17 00:00:00 2001 From: Daniel Eades Date: Fri, 16 Aug 2019 06:17:19 +0100 Subject: [PATCH] remove deprecated 'try!' macro --- src/error.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/error.rs b/src/error.rs index 8523f23..01eabf9 100644 --- a/src/error.rs +++ b/src/error.rs @@ -253,8 +253,8 @@ static BLOCK_IN_FUTURE: &str = "blocking Client used inside a Future context"; impl fmt::Display for Error { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { if let Some(ref url) = self.inner.url { - r#try!(fmt::Display::fmt(url, f)); - r#try!(f.write_str(": ")); + fmt::Display::fmt(url, f)?; + f.write_str(": ")?; } match self.inner.kind { Kind::Http(ref e) => fmt::Display::fmt(e, f),