Skip to content

Commit

Permalink
update nightly build for changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Twinklebear committed Mar 5, 2022
1 parent 9372984 commit 15d627d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,7 @@
//! * [`reordering`](LoadOptions::reorder_data) – Adds support for reordering
//! the normal- and texture coordinate indices.
#![cfg_attr(feature = "merging", allow(incomplete_features))]
#![cfg_attr(feature = "merging", feature(const_generics))]
#![cfg_attr(feature = "merging", feature(const_evaluatable_checked))]
#![cfg_attr(feature = "merging", feature(generic_const_exprs))]

#[cfg(test)]
mod tests;
Expand Down Expand Up @@ -1400,7 +1399,7 @@ fn reorder_data(mesh: &mut Mesh) {
.iter()
.flat_map(|&index| {
let index = index as usize * 2;
std::array::IntoIter::new([mesh.texcoords[index], mesh.texcoords[index + 1]])
IntoIterator::into_iter([mesh.texcoords[index], mesh.texcoords[index + 1]])
})
.collect::<Vec<_>>();
} else {
Expand Down Expand Up @@ -1430,7 +1429,7 @@ fn reorder_data(mesh: &mut Mesh) {
.iter()
.flat_map(|&index| {
let index = index as usize * 2;
std::array::IntoIter::new([
IntoIterator::into_iter([
mesh.normals[index],
mesh.normals[index + 1],
mesh.normals[index + 2],
Expand Down Expand Up @@ -1492,7 +1491,7 @@ where
canonical_indices.insert(*bitpattern, index);
compressed_indicess.push(index);
index += 1;
Some(std::array::IntoIter::new(*position))
Some(IntoIterator::into_iter(*position))
}
}
})
Expand Down

0 comments on commit 15d627d

Please sign in to comment.