From be12c9f753fa742dd76127a600ba9f2447d19b39 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Mon, 10 Mar 2014 20:47:25 -0700 Subject: std: allow io::File* structs to be hashable --- src/libstd/path/posix.rs | 6 +++--- src/libstd/path/windows.rs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/libstd/path') 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 ::hash::Hash for Path { +impl ::hash::Hash 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 ::hash::Hash for Path { +impl ::hash::Hash for Path { #[inline] - fn hash(&self, hasher: &mut H) { - self.repr.hash(hasher) + fn hash(&self, state: &mut S) { + self.repr.hash(state) } } -- cgit 1.4.1-3-g733a5