about summary refs log tree commit diff
path: root/src/libstd/ascii.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/ascii.rs')
-rw-r--r--src/libstd/ascii.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/ascii.rs b/src/libstd/ascii.rs
index 651d364dd1b..1ae36ab46aa 100644
--- a/src/libstd/ascii.rs
+++ b/src/libstd/ascii.rs
@@ -18,9 +18,9 @@ use str::OwnedStr;
 use container::Container;
 use cast;
 use fmt;
+use hash::{Hash, sip};
 use iter::Iterator;
 use vec::{ImmutableVector, MutableVector, Vector};
-use to_bytes::IterBytes;
 use option::{Option, Some, None};
 
 /// Datatype to hold one ascii character. It wraps a `u8`, with the highest bit always zero.
@@ -314,10 +314,10 @@ impl IntoStr for ~[Ascii] {
     }
 }
 
-impl IterBytes for Ascii {
+impl Hash for Ascii {
     #[inline]
-    fn iter_bytes(&self, _lsb0: bool, f: |buf: &[u8]| -> bool) -> bool {
-        f([self.to_byte()])
+    fn hash(&self, s: &mut sip::SipState) {
+        self.to_byte().hash(s)
     }
 }