fix(rustup): static bounds required on Type definition, trivial_casts
This commit is contained in:
		| @@ -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 { | ||||
|   | ||||
| @@ -112,7 +112,6 @@ mod tests { | ||||
|     use http::HttpReader::EofReader; | ||||
|     use http::RawStatus; | ||||
|     use mock::MockStream; | ||||
|     use net::NetworkStream; | ||||
|     use status; | ||||
|     use version; | ||||
|  | ||||
| @@ -131,7 +130,7 @@ mod tests { | ||||
|             status: status::StatusCode::Ok, | ||||
|             headers: Headers::new(), | ||||
|             version: version::HttpVersion::Http11, | ||||
|             body: EofReader(BufReader::new(box MockStream::new() as Box<NetworkStream + Send>)), | ||||
|             body: EofReader(BufReader::new(box MockStream::new())), | ||||
|             status_raw: RawStatus(200, Borrowed("OK")), | ||||
|             _marker: PhantomData, | ||||
|         }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user