diff options
author | Bert Belder <bertbelder@gmail.com> | 2020-09-14 18:48:57 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2020-09-15 01:50:52 +0200 |
commit | f5b40c918c7d602827622d167728a3e7bae87d9d (patch) | |
tree | fb51722e043f4d6bce64a2c7e897cce4ead06c82 /cli/resolve_addr.rs | |
parent | 3da20d19a14ab6838897d281f1b11e49d68bd1a7 (diff) |
refactor: use the 'anyhow' crate instead of 'ErrBox' (#7476)
Diffstat (limited to 'cli/resolve_addr.rs')
-rw-r--r-- | cli/resolve_addr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/resolve_addr.rs b/cli/resolve_addr.rs index 66ee470c9..c3dc52f8f 100644 --- a/cli/resolve_addr.rs +++ b/cli/resolve_addr.rs @@ -1,11 +1,11 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -use deno_core::ErrBox; +use deno_core::error::AnyError; use std::net::SocketAddr; use std::net::ToSocketAddrs; /// Resolve network address. Returns a future. -pub fn resolve_addr(hostname: &str, port: u16) -> Result<SocketAddr, ErrBox> { +pub fn resolve_addr(hostname: &str, port: u16) -> Result<SocketAddr, AnyError> { // Default to localhost if given just the port. Example: ":80" let addr: &str = if !hostname.is_empty() { &hostname |