about summary refs log tree commit diff
path: root/src/libstd/path
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-03-12 21:21:44 -0700
committerbors <bors@rust-lang.org>2014-03-12 21:21:44 -0700
commite86e1d88b2842671123d0a072d00c94bd3f39264 (patch)
tree946860b413e83873d8ed9a479b6f1edaa6d80b4b /src/libstd/path
parenta53242a1a38301b4a40be71fcd182568b7ee91b6 (diff)
parent62026fd6b64296c85a8150119e2cd6a162b8b5e0 (diff)
downloadrust-e86e1d88b2842671123d0a072d00c94bd3f39264.tar.gz
rust-e86e1d88b2842671123d0a072d00c94bd3f39264.zip
auto merge of #12822 : erickt/rust/cleanup, r=acrichto
This PR makes `std::io::FileStat` hashable, and `Path` serializable as a byte array.
Diffstat (limited to 'src/libstd/path')
-rw-r--r--src/libstd/path/posix.rs6
-rw-r--r--src/libstd/path/windows.rs6
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)
     }
 }