fix(rustup): switch to unstable features
This commit is contained in:
		| @@ -10,7 +10,7 @@ use header; | ||||
| /// > during the actual request. | ||||
| /// | ||||
| /// Spec: www.w3.org/TR/cors/#access-control-allow-headers-response-header | ||||
| #[derive(Clone, PartialEq, Show)] | ||||
| #[derive(Clone, PartialEq, Debug)] | ||||
| pub struct AccessControlAllowHeaders(pub Vec<String>); | ||||
|  | ||||
| impl header::Header for AccessControlAllowHeaders { | ||||
|   | ||||
| @@ -11,7 +11,7 @@ use method; | ||||
| /// > actual request. | ||||
| /// | ||||
| /// Spec: www.w3.org/TR/cors/#access-control-allow-methods-response-header | ||||
| #[derive(Clone, PartialEq, Show)] | ||||
| #[derive(Clone, PartialEq, Debug)] | ||||
| pub struct AccessControlAllowMethods(pub Vec<method::Method>); | ||||
|  | ||||
| impl header::Header for AccessControlAllowMethods { | ||||
|   | ||||
| @@ -13,7 +13,7 @@ use header; | ||||
| /// > "*", or "null" in the response. | ||||
| /// | ||||
| /// Spec: www.w3.org/TR/cors/#access-control-allow-origin-response-header | ||||
| #[derive(Clone, PartialEq, Show)] | ||||
| #[derive(Clone, PartialEq, Debug)] | ||||
| pub enum AccessControlAllowOrigin { | ||||
|     /// Allow all origins | ||||
|     AllowStar, | ||||
|   | ||||
| @@ -9,7 +9,7 @@ use header; | ||||
| /// > preflight request can be cached in a preflight result cache. | ||||
| /// | ||||
| /// Spec: www.w3.org/TR/cors/#access-control-max-age-response-header | ||||
| #[derive(Clone, Copy, PartialEq, Show)] | ||||
| #[derive(Clone, Copy, PartialEq, Debug)] | ||||
| pub struct AccessControlMaxAge(pub u32); | ||||
|  | ||||
| impl header::Header for AccessControlMaxAge { | ||||
|   | ||||
| @@ -9,7 +9,7 @@ use header; | ||||
| /// > be used in the actual request as part of the preflight request. | ||||
| /// | ||||
| /// Spec: www.w3.org/TR/cors/#access-control-request-headers-request-header | ||||
| #[derive(Clone, PartialEq, Show)] | ||||
| #[derive(Clone, PartialEq, Debug)] | ||||
| pub struct AccessControlRequestHeaders(pub Vec<String>); | ||||
|  | ||||
| impl header::Header for AccessControlRequestHeaders { | ||||
|   | ||||
| @@ -10,7 +10,7 @@ use method::Method; | ||||
| /// > used in the actual request as part of the preflight request. | ||||
| /// | ||||
| /// Spec: www.w3.org/TR/cors/#access-control-request-method-request-header | ||||
| #[derive(Clone, PartialEq, Show)] | ||||
| #[derive(Clone, PartialEq, Debug)] | ||||
| pub struct AccessControlRequestMethod(pub Method); | ||||
|  | ||||
| impl header::Header for AccessControlRequestMethod { | ||||
|   | ||||
| @@ -484,7 +484,7 @@ impl fmt::Display for Box<HeaderFormat + Send + Sync> { | ||||
|     } | ||||
| } | ||||
|  | ||||
| /// A wrapper around any Header with a Show impl that calls fmt_header. | ||||
| /// A wrapper around any Header with a Display impl that calls fmt_header. | ||||
| /// | ||||
| /// This can be used like so: `format!("{}", HeaderFormatter(&header))` to | ||||
| /// get the representation of a Header which will be written to an | ||||
| @@ -555,7 +555,7 @@ mod tests { | ||||
|         assert_eq!(accept, Some(Accept(vec![application_vendor, text_plain]))); | ||||
|     } | ||||
|  | ||||
|     #[derive(Clone, Show)] | ||||
|     #[derive(Clone, Debug)] | ||||
|     struct CrazyLength(Option<bool>, usize); | ||||
|  | ||||
|     impl Header for CrazyLength { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user