We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff8e419 commit 5205a56Copy full SHA for 5205a56
rustler/src/wrapped_types/list.rs
@@ -29,8 +29,7 @@ wrapper!(
29
/// the `Result`s out of the list. (Contains extra type annotations for clarity)
30
///
31
/// ```
32
- /// # use rustler::{Term, NifResult};
33
- /// # use rustler::types::list::ListIterator;
+ /// # use rustler::{Term, NifResult, ListIterator};
34
/// # fn list_iterator_example(list_term: Term) -> NifResult<Vec<i64>> {
35
/// let list_iterator: ListIterator = list_term.decode()?;
36
@@ -55,7 +54,7 @@ impl<'a> Iterator for ListIterator<'a> {
55
54
// TODO: This is unsafe as tail might not be a list.
56
self.0 = tail;
57
Some(head)
58
- },
+ }
59
None => {
60
if self.is_empty_list() {
61
// We reached the end of the list, finish the iterator.
0 commit comments