Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
whipser/cli: finish integrating review feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
gballet committed Mar 18, 2019
1 parent ba7f982 commit 3754ddd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions whisper/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ fn execute<S, I>(command: I) -> Result<(), Error> where I: IntoIterator<Item=S>,

let network_config = {
let mut cfg = net::NetworkConfiguration::new();
let port = match &args.flag_port[..] {
let port = match args.flag_port.as_str() {
"random" => 0 as u16,
port => port.parse::<u16>().map_err(|e| e.to_string())?,
port => port.parse::<u16>().map_err(|e| e.to_string())?,

};
let addr = Ipv4Addr::from_str(&args.flag_address[..])?;
Expand Down

0 comments on commit 3754ddd

Please sign in to comment.