diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-09-25 17:39:22 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-09-25 22:13:05 -0700 |
| commit | e19e628b19af2921fc29818009496bc430640f76 (patch) | |
| tree | 9e4d4d161b7de4b33cd4335dbe8355fa93bd8463 /src/libcore/iter-trait/dvec.rs | |
| parent | 473a866733b085419b41b2d2f2708a49c079f89e (diff) | |
| download | rust-e19e628b19af2921fc29818009496bc430640f76.tar.gz rust-e19e628b19af2921fc29818009496bc430640f76.zip | |
Demode iter-trait
Diffstat (limited to 'src/libcore/iter-trait/dvec.rs')
| -rw-r--r-- | src/libcore/iter-trait/dvec.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/iter-trait/dvec.rs b/src/libcore/iter-trait/dvec.rs index 0f51df7b545..049b13da265 100644 --- a/src/libcore/iter-trait/dvec.rs +++ b/src/libcore/iter-trait/dvec.rs @@ -6,7 +6,7 @@ type IMPL_T<A> = dvec::DVec<A>; * * Attempts to access this dvec during iteration will fail. */ -pure fn EACH<A>(self: IMPL_T<A>, f: fn(v: &A) -> bool) { +pure fn EACH<A>(self: &IMPL_T<A>, f: fn(v: &A) -> bool) { unsafe { do self.swap |v| { v.each(f); @@ -15,6 +15,6 @@ pure fn EACH<A>(self: IMPL_T<A>, f: fn(v: &A) -> bool) { } } -pure fn SIZE_HINT<A>(self: IMPL_T<A>) -> Option<uint> { +pure fn SIZE_HINT<A>(self: &IMPL_T<A>) -> Option<uint> { Some(self.len()) } |
