From f54a4e7b2233188e3970c504fdd79c338c215371 Mon Sep 17 00:00:00 2001 From: ltdk Date: Sat, 30 Dec 2023 00:22:15 -0500 Subject: [PATCH] Crimes, you have committed. (SocketAddrV4 => SocketAddr) --- src/cmd/serve.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/serve.rs b/src/cmd/serve.rs index 2f2f718e3e..f44f7ce470 100644 --- a/src/cmd/serve.rs +++ b/src/cmd/serve.rs @@ -24,7 +24,7 @@ use std::cell::Cell; use std::fs::read_dir; use std::future::IntoFuture; -use std::net::{SocketAddrV4, TcpListener}; +use std::net::{SocketAddr, TcpListener}; use std::path::{Path, PathBuf, MAIN_SEPARATOR}; use std::sync::mpsc::channel; use std::sync::Mutex; @@ -409,7 +409,7 @@ pub fn serve( messages::report_elapsed_time(start); // Stop right there if we can't bind to the address - let bind_address: SocketAddrV4 = match address.parse() { + let bind_address: SocketAddr = match address.parse() { Ok(a) => a, Err(_) => return Err(anyhow!("Invalid address: {}.", address)), };