Skip to content

Commit 4f5b97f

Browse files
committed
fix(rustup): Send changes
1 parent 98b8c4b commit 4f5b97f

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

src/client/request.rs

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ pub struct Request<W> {
3030
_marker: PhantomData<W>,
3131
}
3232

33+
//FIXME: remove once https://github.com/rust-lang/issues/22629 is fixed
34+
unsafe impl<W> Send for Request<W> {}
35+
3336
impl<W> Request<W> {
3437
/// Read the Request headers.
3538
#[inline]

src/client/response.rs

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ pub struct Response<S = HttpStream> {
2828
_marker: PhantomData<S>,
2929
}
3030

31+
//FIXME: remove once https://github.com/rust-lang/issues/22629 is fixed
32+
unsafe impl<S: Send> Send for Response<S> {}
33+
3134
impl Response {
3235

3336
/// Creates a new response from a server.

src/header/mod.rs

-12
Original file line numberDiff line numberDiff line change
@@ -531,12 +531,9 @@ impl<'a, H: HeaderFormat> fmt::Debug for HeaderFormatter<'a, H> {
531531
mod tests {
532532
use std::old_io::MemReader;
533533
use std::fmt;
534-
use std::borrow::Cow::Borrowed;
535-
use std::hash::{SipHasher, hash};
536534
use mime::Mime;
537535
use mime::TopLevel::Text;
538536
use mime::SubLevel::Plain;
539-
use unicase::UniCase;
540537
use super::{Headers, Header, HeaderFormat, ContentLength, ContentType,
541538
Accept, Host, QualityItem};
542539

@@ -546,15 +543,6 @@ mod tests {
546543
MemReader::new(s.as_bytes().to_vec())
547544
}
548545

549-
#[test]
550-
fn test_case_insensitive() {
551-
let a = UniCase(Borrowed("foobar"));
552-
let b = UniCase(Borrowed("FOOBAR"));
553-
554-
assert_eq!(a, b);
555-
assert_eq!(hash::<_, SipHasher>(&a), hash::<_, SipHasher>(&b));
556-
}
557-
558546
#[test]
559547
fn test_from_raw() {
560548
let headers = Headers::from_raw(&mut mem("Content-Length: 10\r\n\r\n")).unwrap();

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(core, collections, hash, io, old_io, os, old_path,
1+
#![feature(core, collections, io, old_io, os, old_path,
22
std_misc, box_syntax, unsafe_destructor)]
33
#![deny(missing_docs)]
44
#![cfg_attr(test, deny(warnings))]

0 commit comments

Comments
 (0)