diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-03-25 13:21:04 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-03-26 21:30:17 -0700 |
| commit | 8b56a8380b6cca384f4ade7aa1a07b0c5eb77d60 (patch) | |
| tree | 506d6be2fd2d0699da58cfdf89553310731e0c30 /src/libstd/smallintmap.rs | |
| parent | 15688eaf284b54d29e42b4ec415c23c94e567b23 (diff) | |
| download | rust-8b56a8380b6cca384f4ade7aa1a07b0c5eb77d60.tar.gz rust-8b56a8380b6cca384f4ade7aa1a07b0c5eb77d60.zip | |
librustc: Modify all code to use new lifetime binder syntax
Diffstat (limited to 'src/libstd/smallintmap.rs')
| -rw-r--r-- | src/libstd/smallintmap.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/smallintmap.rs b/src/libstd/smallintmap.rs index 4ad8d38b072..16f7c0ba860 100644 --- a/src/libstd/smallintmap.rs +++ b/src/libstd/smallintmap.rs @@ -22,7 +22,7 @@ pub struct SmallIntMap<T> { priv v: ~[Option<T>], } -impl<V> BaseIter<(uint, &'self V)> for SmallIntMap<V> { +impl<'self, V> BaseIter<(uint, &'self V)> for SmallIntMap<V> { /// Visit all key-value pairs in order fn each(&self, it: &fn(&(uint, &'self V)) -> bool) { for uint::range(0, self.v.len()) |i| { @@ -36,7 +36,7 @@ impl<V> BaseIter<(uint, &'self V)> for SmallIntMap<V> { fn size_hint(&self) -> Option<uint> { Some(self.len()) } } -impl<V> ReverseIter<(uint, &'self V)> for SmallIntMap<V> { +impl<'self, V> ReverseIter<(uint, &'self V)> for SmallIntMap<V> { /// Visit all key-value pairs in reverse order fn each_reverse(&self, it: &fn(&(uint, &'self V)) -> bool) { for uint::range_rev(self.v.len(), 0) |i| { |
