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!(
2929 /// the `Result`s out of the list. (Contains extra type annotations for clarity)
3030 ///
3131 /// ```
32- /// # use rustler::{Term, NifResult};
33- /// # use rustler::types::list::ListIterator;
32+ /// # use rustler::{Term, NifResult, ListIterator};
3433 /// # fn list_iterator_example(list_term: Term) -> NifResult<Vec<i64>> {
3534 /// let list_iterator: ListIterator = list_term.decode()?;
3635 ///
@@ -55,7 +54,7 @@ impl<'a> Iterator for ListIterator<'a> {
5554 // TODO: This is unsafe as tail might not be a list.
5655 self . 0 = tail;
5756 Some ( head)
58- } ,
57+ }
5958 None => {
6059 if self . is_empty_list ( ) {
6160 // We reached the end of the list, finish the iterator.
You can’t perform that action at this time.
0 commit comments