mirror of
https://github.com/bevyengine/bevy
synced 2024-11-14 00:47:32 +00:00
a4e85536c1
# Objective Fixes recent pipeline errors: ``` error: use of deprecated associated function `std::array::IntoIter::<T, N>::new`: use `IntoIterator::into_iter` instead --> crates/bevy_render/src/mesh/mesh.rs:467:54 | 467 | .flat_map(|normal| std::array::IntoIter::new([normal, normal, normal])) | ^^^ | = note: `-D deprecated` implied by `-D warnings` Compiling bevy_render2 v0.5.0 (/home/runner/work/bevy/bevy/pipelined/bevy_render2) error: use of deprecated associated function `std::array::IntoIter::<T, N>::new`: use `IntoIterator::into_iter` instead --> pipelined/bevy_render2/src/mesh/mesh/mod.rs:287:54 | 287 | .flat_map(|normal| std::array::IntoIter::new([normal, normal, normal])) | ^^^ | = note: `-D deprecated` implied by `-D warnings` error: could not compile `bevy_render` due to previous error ``` ## Solution - Replaced `IntoIter::new` with `IntoIterator::into_iter` ## Suggestions For me it looks like two equivalent `Mesh` structs with the same methods. Should we refactor it? Or, they will be different in the near future? Co-authored-by: CrazyRoka <rokarostuk@gmail.com> |
||
---|---|---|
.. | ||
bevy_app | ||
bevy_asset | ||
bevy_audio | ||
bevy_core | ||
bevy_derive | ||
bevy_diagnostic | ||
bevy_dylib | ||
bevy_dynamic_plugin | ||
bevy_ecs | ||
bevy_ecs_compile_fail_tests | ||
bevy_gilrs | ||
bevy_gltf | ||
bevy_input | ||
bevy_internal | ||
bevy_log | ||
bevy_macro_utils | ||
bevy_math | ||
bevy_pbr | ||
bevy_reflect | ||
bevy_render | ||
bevy_scene | ||
bevy_sprite | ||
bevy_tasks | ||
bevy_text | ||
bevy_transform | ||
bevy_ui | ||
bevy_utils | ||
bevy_wgpu | ||
bevy_window | ||
bevy_winit | ||
crevice |