bevy/crates
Rostyslav Toch a4e85536c1 Fix clippy errors related to IntoIter::new (#3269)
# 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>
2021-12-06 22:26:35 +00:00
..
bevy_app Merge New Renderer 2021-11-22 23:57:42 -08:00
bevy_asset Fix clippy lints for 1.57 (#3238) 2021-12-02 23:40:37 +00:00
bevy_audio Remove wasm audio feature flag for 2021 (#3000) 2021-11-11 01:17:38 +00:00
bevy_core default features from bevy_asset and bevy_ecs can actually be disabled (#3097) 2021-11-13 21:15:22 +00:00
bevy_derive Merge New Renderer 2021-11-22 23:57:42 -08:00
bevy_diagnostic Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_dylib Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_dynamic_plugin Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_ecs Fix clippy lints for 1.57 (#3238) 2021-12-02 23:40:37 +00:00
bevy_ecs_compile_fail_tests Fix clippy lints for 1.57 (#3238) 2021-12-02 23:40:37 +00:00
bevy_gilrs Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_gltf Fix clippy lints for 1.57 (#3238) 2021-12-02 23:40:37 +00:00
bevy_input Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_internal Merge New Renderer 2021-11-22 23:57:42 -08:00
bevy_log Merge New Renderer 2021-11-22 23:57:42 -08:00
bevy_macro_utils Fix path used by macro not considering that we can use a sub-crate (#3178) 2021-11-29 23:10:31 +00:00
bevy_math Merge New Renderer 2021-11-22 23:57:42 -08:00
bevy_pbr Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_reflect Merge New Renderer 2021-11-22 23:57:42 -08:00
bevy_render Fix clippy errors related to IntoIter::new (#3269) 2021-12-06 22:26:35 +00:00
bevy_scene Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_sprite Fix clippy lints for 1.57 (#3238) 2021-12-02 23:40:37 +00:00
bevy_tasks Add readme to errors crate and clean up cargo files (#3125) 2021-11-13 23:06:48 +00:00
bevy_text Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_transform Merge New Renderer 2021-11-22 23:57:42 -08:00
bevy_ui Add docstring comment to Style to reference CSS (#2936) 2021-11-06 20:53:10 +00:00
bevy_utils Merge New Renderer 2021-11-22 23:57:42 -08:00
bevy_wgpu Merge New Renderer 2021-11-22 23:57:42 -08:00
bevy_window Added documentation to WindowMode to better document what 'use_size' … (#3216) 2021-11-30 23:51:11 +00:00
bevy_winit Added documentation to WindowMode to better document what 'use_size' … (#3216) 2021-11-30 23:51:11 +00:00
crevice Fix clippy lints for 1.57 (#3238) 2021-12-02 23:40:37 +00:00