about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorJack Moffitt <jack@metajack.im>2013-04-03 11:03:41 -0600
committerJack Moffitt <jack@metajack.im>2013-04-03 11:03:41 -0600
commitc4d2b7999a12b8c9111ae1d897c476c052ddc05a (patch)
treee39308e222bf392bc8c5ea1d7f4a73e8a867f7e4 /src/libstd
parent260d74dfcc095d02add8fc97c31922824ddf92fd (diff)
Add Clone derivation for std::net::url types.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/net_url.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/net_url.rs b/src/libstd/net_url.rs
index d23784953ef..9174e99e40a 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<UserInfo>,
@@ -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