fix(rustup): update to newest fmt trait names and slice syntax
This commit is contained in:
		| @@ -6,7 +6,7 @@ use header::parsing::from_one_raw_str; | ||||
| use header::parsing::tm_from_str; | ||||
|  | ||||
| /// The `If-Modified-Since` header field. | ||||
| #[derive(Copy, PartialEq, Clone, Show)] | ||||
| #[derive(Copy, PartialEq, Clone, Debug)] | ||||
| pub struct IfModifiedSince(pub Tm); | ||||
|  | ||||
| deref!(IfModifiedSince => Tm); | ||||
| @@ -29,7 +29,7 @@ impl HeaderFormat for IfModifiedSince { | ||||
|             0 => tm, | ||||
|             _ => tm.to_utc(), | ||||
|         }; | ||||
|         fmt::String::fmt(&tm.rfc822(), fmt) | ||||
|         fmt::Display::fmt(&tm.rfc822(), fmt) | ||||
|     } | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user