From fd26ec97536771e4ac1631d3bf1f3a81211eb926 Mon Sep 17 00:00:00 2001 From: Ignotus Peverell Date: Thu, 23 Mar 2017 18:04:49 -0700 Subject: [PATCH] Fix Hyper URL to URI ref --- grin/src/seed.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);