diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2014-02-25 08:03:41 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-03-12 13:39:47 -0700 |
| commit | 9959188d0e653871b4995a25ce066dbf0726f132 (patch) | |
| tree | 0eb1353d61e39bd5658d07bb9699dd1624aa7516 /src/libstd/path/windows.rs | |
| parent | 207ebf13f12d8fa4449d66cd86407de03f264667 (diff) | |
| download | rust-9959188d0e653871b4995a25ce066dbf0726f132.tar.gz rust-9959188d0e653871b4995a25ce066dbf0726f132.zip | |
Use generic impls for `Hash`
Diffstat (limited to 'src/libstd/path/windows.rs')
| -rw-r--r-- | src/libstd/path/windows.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/path/windows.rs b/src/libstd/path/windows.rs index 5b358819e41..6d05001beab 100644 --- a/src/libstd/path/windows.rs +++ b/src/libstd/path/windows.rs @@ -17,7 +17,7 @@ use clone::Clone; use container::Container; use cmp::Eq; use from_str::FromStr; -use hash::{Hash, sip}; +use io::Writer; use iter::{AdditiveIterator, DoubleEndedIterator, Extendable, Rev, Iterator, Map}; use option::{Option, Some, None}; use str; @@ -112,10 +112,10 @@ impl ToCStr for Path { } } -impl Hash for Path { +impl<H: Writer> ::hash::Hash<H> for Path { #[inline] - fn hash(&self, s: &mut sip::SipState) { - self.repr.hash(s) + fn hash(&self, hasher: &mut H) { + self.repr.hash(hasher) } } |
