Use array_iterator() over deprecated initalizer #42
No reviewers
Labels
No Label
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: dolysis/yary#42
Loading…
Reference in New Issue
No description provided.
Delete Branch "feature/event/parser/use-into-iter"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The deprecated function,
std::array::IntoIter::new
was previously used to workaround a hack in
std
where Rust editions < 2021 would keep the previousbehavior of automatically converting the call to take the array by reference.
The exception is if you explicitly call
IntoIterator::into_iter()
on an array,in which case you "opt in" to the new behavior.
That's all we do here. Hopefully quieting down the spurious warnings in CI.