Skip to content

Commit aa39d75

Browse files
committed
Make url::Url derive TotalEq.
1 parent 2ddb605 commit aa39d75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/liburl/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ use collections::HashMap;
4848
/// fragment: Some(~"quz") };
4949
/// // https://[email protected]:8080/foo/bar?baz=qux#quz
5050
/// ```
51-
#[deriving(Clone, Eq)]
51+
#[deriving(Clone, Eq, TotalEq)]
5252
pub struct Url {
5353
/// The scheme part of a URL, such as `https` in the above example.
5454
scheme: ~str,
@@ -79,7 +79,7 @@ pub struct Path {
7979
}
8080

8181
/// An optional subcomponent of a URI authority component.
82-
#[deriving(Clone, Eq)]
82+
#[deriving(Clone, Eq, TotalEq)]
8383
pub struct UserInfo {
8484
/// The user name.
8585
user: ~str,

0 commit comments

Comments
 (0)