diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-05-29 17:45:07 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-05-30 15:52:24 -0700 |
| commit | 748bc3ca49de8ab0b890726120c40567094e43fc (patch) | |
| tree | a205dcd5582cbecbb1a02fa3ed1ebfdcc85ff881 /src/liburl | |
| parent | f4fa7c8a07a96cc9d0aae0bfc6515fb747f25341 (diff) | |
std: Rename {Eq,Ord} to Partial{Eq,Ord}
This is part of the ongoing renaming of the equality traits. See #12517 for more
details. All code using Eq/Ord will temporarily need to move to Partial{Eq,Ord}
or the Total{Eq,Ord} traits. The Total traits will soon be renamed to {Eq,Ord}.
cc #12517
[breaking-change]
Diffstat (limited to 'src/liburl')
| -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 |
