Skip to content

Commit

Permalink
Rust 1.28 compat, remove const that does not exist yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
estk committed Jan 8, 2019
1 parent 0bbcf0f commit 117fe58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ fn main() {
)
.get_matches();

let listen_host =
value_t!(matches.value_of("host"), IpAddr).unwrap_or(Ipv4Addr::UNSPECIFIED.into());
let listen_host = value_t!(matches.value_of("host"), IpAddr)
.unwrap_or(Ipv4Addr::new(0, 0, 0, 0).into());
let listen_port = value_t!(matches.value_of("port"), u16).unwrap_or(8080);

let redis_url = env::var("REDIS_URL").expect("REDIS_URL must be set");
Expand Down

0 comments on commit 117fe58

Please sign in to comment.