diff options
Diffstat (limited to 'src/errors.rs')
-rw-r--r-- | src/errors.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/errors.rs b/src/errors.rs index 55185df8e..0855e0079 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -1,7 +1,7 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -pub use msg::ErrorKind; -use resolve_addr::ResolveAddrError; +pub use crate::msg::ErrorKind; +use crate::resolve_addr::ResolveAddrError; use hyper; use std; @@ -95,7 +95,7 @@ impl DenoError { } impl fmt::Display for DenoError { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self.repr { Repr::Simple(_kind, ref err_str) => f.pad(err_str), Repr::IoErr(ref err) => err.fmt(f), @@ -115,7 +115,7 @@ impl std::error::Error for DenoError { } } - fn cause(&self) -> Option<&std::error::Error> { + fn cause(&self) -> Option<&dyn std::error::Error> { match self.repr { Repr::Simple(_kind, ref _msg) => None, Repr::IoErr(ref err) => Some(err), |