Skip to content

Commit

Permalink
remove deprecated usage of try macro
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Aug 20, 2019
1 parent a8b3bc6 commit 0c8e6a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ static BLOCK_IN_FUTURE: &'static str = "blocking Client used inside a Future con
impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
if let Some(ref url) = self.inner.url {
try!(fmt::Display::fmt(url, f));
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),
Expand Down

0 comments on commit 0c8e6a8

Please sign in to comment.