Skip to content

Commit c4d2b79

Browse files
committed
Add Clone derivation for std::net::url types.
1 parent 260d74d commit c4d2b79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libstd/net_url.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use core::to_str::ToStr;
2525
use core::to_str;
2626
use core::uint;
2727

28-
#[deriving(Eq)]
28+
#[deriving(Clone, Eq)]
2929
struct Url {
3030
scheme: ~str,
3131
user: Option<UserInfo>,
@@ -36,7 +36,7 @@ struct Url {
3636
fragment: Option<~str>
3737
}
3838

39-
#[deriving(Eq)]
39+
#[deriving(Clone, Eq)]
4040
struct UserInfo {
4141
user: ~str,
4242
pass: Option<~str>
@@ -398,7 +398,7 @@ pub fn get_scheme(rawurl: &str) -> Result<(~str, ~str), ~str> {
398398
return Err(~"url: Scheme must be terminated with a colon.");
399399
}
400400

401-
#[deriving(Eq)]
401+
#[deriving(Clone, Eq)]
402402
enum Input {
403403
Digit, // all digits
404404
Hex, // digits and letters a-f

0 commit comments

Comments
 (0)