fix(rustup): static bounds required on Type definition, trivial_casts

This commit is contained in:
Kevin Butler
2015-03-26 16:02:04 +00:00
parent a10e7ded93
commit eee7a85d3c
9 changed files with 50 additions and 22 deletions

View File

@@ -56,7 +56,9 @@ impl Request<Fresh> {
let (host, port) = try!(get_host_and_port(&url));
let stream = try!(connector.connect(&*host, port, &*url.scheme));
let stream = ThroughWriter(BufWriter::new(box stream as Box<NetworkStream + Send>));
// FIXME: Use Type ascription
let stream: Box<NetworkStream + Send> = box stream;
let stream = ThroughWriter(BufWriter::new(stream));
let mut headers = Headers::new();
headers.set(Host {