From c4d2b7999a12b8c9111ae1d897c476c052ddc05a Mon Sep 17 00:00:00 2001 From: Jack Moffitt Date: Wed, 3 Apr 2013 11:03:41 -0600 Subject: [PATCH] Add Clone derivation for std::net::url types. --- src/libstd/net_url.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libstd/net_url.rs b/src/libstd/net_url.rs index d23784953ef99..9174e99e40a0a 100644 --- a/src/libstd/net_url.rs +++ b/src/libstd/net_url.rs @@ -25,7 +25,7 @@ use core::to_str::ToStr; use core::to_str; use core::uint; -#[deriving(Eq)] +#[deriving(Clone, Eq)] struct Url { scheme: ~str, user: Option, @@ -36,7 +36,7 @@ struct Url { fragment: Option<~str> } -#[deriving(Eq)] +#[deriving(Clone, Eq)] struct UserInfo { user: ~str, pass: Option<~str> @@ -398,7 +398,7 @@ pub fn get_scheme(rawurl: &str) -> Result<(~str, ~str), ~str> { return Err(~"url: Scheme must be terminated with a colon."); } -#[deriving(Eq)] +#[deriving(Clone, Eq)] enum Input { Digit, // all digits Hex, // digits and letters a-f