diff options
| author | bors <bors@rust-lang.org> | 2014-03-22 23:46:58 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-03-22 23:46:58 -0700 |
| commit | 2ddb60565423bdc225ccc8dd4ebfb653c5650ba2 (patch) | |
| tree | 3d878e1f45ced463d7178aed9c4dff9cc19ebf01 /src/libstd/path | |
| parent | 3d9fdf71656aa51c65f167e19b0d8cb54023b05e (diff) | |
| parent | 3829ac2a52f12b08501cb25d82de32f39fbe801e (diff) | |
| download | rust-2ddb60565423bdc225ccc8dd4ebfb653c5650ba2.tar.gz rust-2ddb60565423bdc225ccc8dd4ebfb653c5650ba2.zip | |
auto merge of #13088 : thestinger/rust/hashmap, r=cmr
Closes #5283
Diffstat (limited to 'src/libstd/path')
| -rw-r--r-- | src/libstd/path/posix.rs | 4 | ||||
| -rw-r--r-- | src/libstd/path/windows.rs | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/libstd/path/posix.rs b/src/libstd/path/posix.rs index f654f59266a..512b20ebf4c 100644 --- a/src/libstd/path/posix.rs +++ b/src/libstd/path/posix.rs @@ -13,7 +13,7 @@ use container::Container; use c_str::{CString, ToCStr}; use clone::Clone; -use cmp::Eq; +use cmp::{Eq, TotalEq}; use from_str::FromStr; use io::Writer; use iter::{AdditiveIterator, Extendable, Iterator, Map}; @@ -69,6 +69,8 @@ impl Eq for Path { } } +impl TotalEq for Path {} + impl FromStr for Path { fn from_str(s: &str) -> Option<Path> { Path::new_opt(s) diff --git a/src/libstd/path/windows.rs b/src/libstd/path/windows.rs index dba8af4128b..81da2f50f8d 100644 --- a/src/libstd/path/windows.rs +++ b/src/libstd/path/windows.rs @@ -15,7 +15,7 @@ use c_str::{CString, ToCStr}; use cast; use clone::Clone; use container::Container; -use cmp::Eq; +use cmp::{Eq, TotalEq}; use from_str::FromStr; use io::Writer; use iter::{AdditiveIterator, DoubleEndedIterator, Extendable, Rev, Iterator, Map}; @@ -93,6 +93,8 @@ impl Eq for Path { } } +impl TotalEq for Path {} + impl FromStr for Path { fn from_str(s: &str) -> Option<Path> { Path::new_opt(s) |
