Skip to content

Commit

Permalink
Crimes, you have committed. (SocketAddrV4 => SocketAddr)
Browse files Browse the repository at this point in the history
  • Loading branch information
clarfonthey committed Dec 30, 2023
1 parent e5f3026 commit 209bf98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd/serve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)),
};
Expand Down

0 comments on commit 209bf98

Please sign in to comment.