diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2014-03-22 16:30:45 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2014-03-23 01:59:11 -0400 |
| commit | 3829ac2a52f12b08501cb25d82de32f39fbe801e (patch) | |
| tree | e9d59ed4a26c120d9aa26510a2b4e85516a3dc52 /src/libstd/path | |
| parent | 94e4e917243425f15241e3dcc9b1bcd4b11ebf3e (diff) | |
| download | rust-3829ac2a52f12b08501cb25d82de32f39fbe801e.tar.gz rust-3829ac2a52f12b08501cb25d82de32f39fbe801e.zip | |
use TotalEq for HashMap
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) |
