diff options
| author | bors <bors@rust-lang.org> | 2013-06-16 10:55:02 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-06-16 10:55:02 -0700 |
| commit | fd8aa9afbd42cc6979c0b83690b32d27cc7afa78 (patch) | |
| tree | a580268fc410dd81fab02cdc1fdfe08a99d4855d /src/libstd/iterator.rs | |
| parent | ae23beb52f637b8c8640706ee8c6d2d4a5796bc8 (diff) | |
| parent | 53f6a4e9fbc3e8bb1fcf47ec3676c791892ea1b1 (diff) | |
| download | rust-fd8aa9afbd42cc6979c0b83690b32d27cc7afa78.tar.gz rust-fd8aa9afbd42cc6979c0b83690b32d27cc7afa78.zip | |
auto merge of #7177 : huonw/rust/unfold-fix, r=thestinger
Diffstat (limited to 'src/libstd/iterator.rs')
| -rw-r--r-- | src/libstd/iterator.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/iterator.rs b/src/libstd/iterator.rs index a505c552359..946cf7a7276 100644 --- a/src/libstd/iterator.rs +++ b/src/libstd/iterator.rs @@ -816,8 +816,8 @@ impl<'self, A, St> UnfoldrIterator<'self, A, St> { /// Creates a new iterator with the specified closure as the "iterator /// function" and an initial state to eventually pass to the iterator #[inline] - pub fn new(f: &'self fn(&mut St) -> Option<A>, initial_state: St) - -> UnfoldrIterator<'self, A, St> { + pub fn new<'a>(f: &'a fn(&mut St) -> Option<A>, initial_state: St) + -> UnfoldrIterator<'a, A, St> { UnfoldrIterator { f: f, state: initial_state |
