From aa39d755e3f9823b51cc57761c0c8c75759aca2e Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Sun, 23 Mar 2014 15:32:18 +0100 Subject: [PATCH] Make url::Url derive TotalEq. --- src/liburl/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/liburl/lib.rs b/src/liburl/lib.rs index 55d87000130..031c7fafa04 100644 --- a/src/liburl/lib.rs +++ b/src/liburl/lib.rs @@ -48,7 +48,7 @@ use collections::HashMap; /// fragment: Some(~"quz") }; /// // https://username@example.com:8080/foo/bar?baz=qux#quz /// ``` -#[deriving(Clone, Eq)] +#[deriving(Clone, Eq, TotalEq)] pub struct Url { /// The scheme part of a URL, such as `https` in the above example. scheme: ~str, @@ -79,7 +79,7 @@ pub struct Path { } /// An optional subcomponent of a URI authority component. -#[deriving(Clone, Eq)] +#[deriving(Clone, Eq, TotalEq)] pub struct UserInfo { /// The user name. user: ~str,