diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2014-03-10 20:47:25 -0700 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2014-03-12 18:58:54 -0700 |
| commit | be12c9f753fa742dd76127a600ba9f2447d19b39 (patch) | |
| tree | a2923b1425926da3259d704993a828e754c9f814 /src/libstd/path | |
| parent | 4d64441bcb820cf35d3e39dde8514c46765a12a6 (diff) | |
| download | rust-be12c9f753fa742dd76127a600ba9f2447d19b39.tar.gz rust-be12c9f753fa742dd76127a600ba9f2447d19b39.zip | |
std: allow io::File* structs to be hashable
Diffstat (limited to 'src/libstd/path')
| -rw-r--r-- | src/libstd/path/posix.rs | 6 | ||||
| -rw-r--r-- | src/libstd/path/windows.rs | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/libstd/path/posix.rs b/src/libstd/path/posix.rs index f7588f6ca59..8345a2d04d1 100644 --- a/src/libstd/path/posix.rs +++ b/src/libstd/path/posix.rs @@ -88,10 +88,10 @@ impl ToCStr for Path { } } -impl<H: Writer> ::hash::Hash<H> for Path { +impl<S: Writer> ::hash::Hash<S> for Path { #[inline] - fn hash(&self, hasher: &mut H) { - self.repr.hash(hasher) + fn hash(&self, state: &mut S) { + self.repr.hash(state) } } diff --git a/src/libstd/path/windows.rs b/src/libstd/path/windows.rs index 6d05001beab..180078ae959 100644 --- a/src/libstd/path/windows.rs +++ b/src/libstd/path/windows.rs @@ -112,10 +112,10 @@ impl ToCStr for Path { } } -impl<H: Writer> ::hash::Hash<H> for Path { +impl<S: Writer> ::hash::Hash<S> for Path { #[inline] - fn hash(&self, hasher: &mut H) { - self.repr.hash(hasher) + fn hash(&self, state: &mut S) { + self.repr.hash(state) } } |
