summaryrefslogtreecommitdiff
path: root/src/errors.rs
diff options
context:
space:
mode:
authorAndy Hayden <andyhayden1@gmail.com>2019-01-13 22:30:38 -0800
committerBert Belder <bertbelder@gmail.com>2019-01-14 22:30:04 +0100
commit526fdac053f125b641b07b78b81ffa9962622e09 (patch)
treeec884949a6b43c109a4509de21f6f6a10d15ef38 /src/errors.rs
parent7d08db2191526524bf9a7a45b97952c533a6aa74 (diff)
Update to rust 2018 edition
Diffstat (limited to 'src/errors.rs')
-rw-r--r--src/errors.rs8
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),