diff options
Diffstat (limited to 'src/liburl/lib.rs')
| -rw-r--r-- | src/liburl/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/liburl/lib.rs b/src/liburl/lib.rs index b049246ca18..2120bc10dab 100644 --- a/src/liburl/lib.rs +++ b/src/liburl/lib.rs @@ -22,7 +22,7 @@ extern crate collections; use collections::HashMap; -use std::cmp::Eq; +use std::cmp::PartialEq; use std::fmt; use std::from_str::FromStr; use std::hash::Hash; @@ -48,7 +48,7 @@ use std::uint; /// fragment: Some("quz".to_string()) }; /// // https://username@example.com:8080/foo/bar?baz=qux#quz /// ``` -#[deriving(Clone, Eq, TotalEq)] +#[deriving(Clone, PartialEq, TotalEq)] pub struct Url { /// The scheme part of a URL, such as `https` in the above example. pub scheme: String, @@ -68,7 +68,7 @@ pub struct Url { pub fragment: Option<String> } -#[deriving(Clone, Eq)] +#[deriving(Clone, PartialEq)] pub struct Path { /// The path component of a URL, for example `/foo/bar`. pub path: String, @@ -81,7 +81,7 @@ pub struct Path { } /// An optional subcomponent of a URI authority component. -#[deriving(Clone, Eq, TotalEq)] +#[deriving(Clone, PartialEq, TotalEq)] pub struct UserInfo { /// The user name. pub user: String, @@ -515,7 +515,7 @@ pub fn get_scheme(rawurl: &str) -> Result<(String, String), String> { return Err("url: Scheme must be terminated with a colon.".to_string()); } -#[deriving(Clone, Eq)] +#[deriving(Clone, PartialEq)] enum Input { Digit, // all digits Hex, // digits and letters a-f |
