File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
rustler/src/wrapped_types Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,7 @@ wrapper!(
29
29
/// the `Result`s out of the list. (Contains extra type annotations for clarity)
30
30
///
31
31
/// ```
32
- /// # use rustler::{Term, NifResult};
33
- /// # use rustler::types::list::ListIterator;
32
+ /// # use rustler::{Term, NifResult, ListIterator};
34
33
/// # fn list_iterator_example(list_term: Term) -> NifResult<Vec<i64>> {
35
34
/// let list_iterator: ListIterator = list_term.decode()?;
36
35
///
@@ -55,7 +54,7 @@ impl<'a> Iterator for ListIterator<'a> {
55
54
// TODO: This is unsafe as tail might not be a list.
56
55
self . 0 = tail;
57
56
Some ( head)
58
- } ,
57
+ }
59
58
None => {
60
59
if self . is_empty_list ( ) {
61
60
// We reached the end of the list, finish the iterator.
You can’t perform that action at this time.
0 commit comments