From 3168fe06ff69970be329583f560a3ccd9c00c874 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 26 Feb 2013 14:34:00 -0500 Subject: Add manual &self/ and &static/ and /&self declarations that are currently inferred. New rules are coming that will require them to be explicit. All add some explicit self declarations. --- src/libstd/smallintmap.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstd/smallintmap.rs') diff --git a/src/libstd/smallintmap.rs b/src/libstd/smallintmap.rs index 68d22f7c919..aad8fab834f 100644 --- a/src/libstd/smallintmap.rs +++ b/src/libstd/smallintmap.rs @@ -22,7 +22,7 @@ pub struct SmallIntMap { priv v: ~[Option], } -impl BaseIter<(uint, &V)> for SmallIntMap { +impl BaseIter<(uint, &self/V)> for SmallIntMap { /// Visit all key-value pairs in order pure fn each(&self, it: fn(&(uint, &self/V)) -> bool) { for uint::range(0, self.v.len()) |i| { @@ -36,7 +36,7 @@ impl BaseIter<(uint, &V)> for SmallIntMap { pure fn size_hint(&self) -> Option { Some(self.len()) } } -impl ReverseIter<(uint, &V)> for SmallIntMap { +impl ReverseIter<(uint, &self/V)> for SmallIntMap { /// Visit all key-value pairs in reverse order pure fn each_reverse(&self, it: fn(&(uint, &self/V)) -> bool) { for uint::range_rev(self.v.len(), 0) |i| { -- cgit 1.4.1-3-g733a5