Fixed compilation for Rust master.
This commit is contained in:
		| @@ -315,7 +315,7 @@ impl<'a> IntoUrl for &'a str { | ||||
| } | ||||
|  | ||||
| /// Behavior regarding how to handle redirects within a Client. | ||||
| #[deriving(Copy, Clone)] | ||||
| #[deriving(Copy)] | ||||
| pub enum RedirectPolicy { | ||||
|     /// Don't follow any redirects. | ||||
|     FollowNone, | ||||
| @@ -325,6 +325,13 @@ pub enum RedirectPolicy { | ||||
|     FollowIf(fn(&Url) -> bool), | ||||
| } | ||||
|  | ||||
| // This is a hack because of upstream typesystem issues.  | ||||
| impl Clone for RedirectPolicy { | ||||
|     fn clone(&self) -> RedirectPolicy { | ||||
|         *self  | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl Default for RedirectPolicy { | ||||
|     fn default() -> RedirectPolicy { | ||||
|         RedirectPolicy::FollowAll | ||||
|   | ||||
		Reference in New Issue
	
	Block a user