diff --git a/grin/src/seed.rs b/grin/src/seed.rs index b71bb4fb8..9c1020a2a 100644 --- a/grin/src/seed.rs +++ b/grin/src/seed.rs @@ -16,7 +16,7 @@ use rand::{thread_rng, Rng}; use std::cmp::min; use std::net::SocketAddr; use std::ops::Deref; -use std::str; +use std::str::{self, FromStr}; use std::sync::Arc; use std::thread; use std::time; @@ -173,7 +173,7 @@ impl Seeder { /// Extract the list of seeds from a pre-defined gist. Easy method until we /// have a set of DNS names we can rely on. pub fn gist_seeds(h: reactor::Handle) -> Box, Error = String>> { - let url = hyper::Url::parse(&GIST_SEEDS_URL).unwrap(); + let url = hyper::Uri::from_str(&GIST_SEEDS_URL).unwrap(); let seeds = future::ok(()).and_then(move |_| { let client = hyper::Client::new(&h);