fix(rustup): Send changes
This commit is contained in:
		| @@ -30,6 +30,9 @@ pub struct Request<W> { | |||||||
|     _marker: PhantomData<W>, |     _marker: PhantomData<W>, | ||||||
| } | } | ||||||
|  |  | ||||||
|  | //FIXME: remove once https://github.com/rust-lang/issues/22629 is fixed | ||||||
|  | unsafe impl<W> Send for Request<W> {} | ||||||
|  |  | ||||||
| impl<W> Request<W> { | impl<W> Request<W> { | ||||||
|     /// Read the Request headers. |     /// Read the Request headers. | ||||||
|     #[inline] |     #[inline] | ||||||
|   | |||||||
| @@ -28,6 +28,9 @@ pub struct Response<S = HttpStream> { | |||||||
|     _marker: PhantomData<S>, |     _marker: PhantomData<S>, | ||||||
| } | } | ||||||
|  |  | ||||||
|  | //FIXME: remove once https://github.com/rust-lang/issues/22629 is fixed | ||||||
|  | unsafe impl<S: Send> Send for Response<S> {} | ||||||
|  |  | ||||||
| impl Response { | impl Response { | ||||||
|  |  | ||||||
|     /// Creates a new response from a server. |     /// Creates a new response from a server. | ||||||
|   | |||||||
| @@ -531,12 +531,9 @@ impl<'a, H: HeaderFormat> fmt::Debug for HeaderFormatter<'a, H> { | |||||||
| mod tests { | mod tests { | ||||||
|     use std::old_io::MemReader; |     use std::old_io::MemReader; | ||||||
|     use std::fmt; |     use std::fmt; | ||||||
|     use std::borrow::Cow::Borrowed; |  | ||||||
|     use std::hash::{SipHasher, hash}; |  | ||||||
|     use mime::Mime; |     use mime::Mime; | ||||||
|     use mime::TopLevel::Text; |     use mime::TopLevel::Text; | ||||||
|     use mime::SubLevel::Plain; |     use mime::SubLevel::Plain; | ||||||
|     use unicase::UniCase; |  | ||||||
|     use super::{Headers, Header, HeaderFormat, ContentLength, ContentType, |     use super::{Headers, Header, HeaderFormat, ContentLength, ContentType, | ||||||
|                 Accept, Host, QualityItem}; |                 Accept, Host, QualityItem}; | ||||||
|  |  | ||||||
| @@ -546,15 +543,6 @@ mod tests { | |||||||
|         MemReader::new(s.as_bytes().to_vec()) |         MemReader::new(s.as_bytes().to_vec()) | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     #[test] |  | ||||||
|     fn test_case_insensitive() { |  | ||||||
|         let a = UniCase(Borrowed("foobar")); |  | ||||||
|         let b = UniCase(Borrowed("FOOBAR")); |  | ||||||
|  |  | ||||||
|         assert_eq!(a, b); |  | ||||||
|         assert_eq!(hash::<_, SipHasher>(&a), hash::<_, SipHasher>(&b)); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     #[test] |     #[test] | ||||||
|     fn test_from_raw() { |     fn test_from_raw() { | ||||||
|         let headers = Headers::from_raw(&mut mem("Content-Length: 10\r\n\r\n")).unwrap(); |         let headers = Headers::from_raw(&mut mem("Content-Length: 10\r\n\r\n")).unwrap(); | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| #![feature(core, collections, hash, io, old_io, os, old_path, | #![feature(core, collections, io, old_io, os, old_path, | ||||||
|            std_misc, box_syntax, unsafe_destructor)] |            std_misc, box_syntax, unsafe_destructor)] | ||||||
| #![deny(missing_docs)] | #![deny(missing_docs)] | ||||||
| #![cfg_attr(test, deny(warnings))] | #![cfg_attr(test, deny(warnings))] | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user