From 16c5a4b7cdef2b4ca5d4f5d436a209c0748a53fa Mon Sep 17 00:00:00 2001 From: Torstein Grindvik <52322338+torsteingrindvik@users.noreply.github.com> Date: Thu, 14 Dec 2023 19:48:20 +0100 Subject: [PATCH] Fix BindingType import warning (#10818) # Objective Fix this warning ``` warning: unused import: `BindingType` --> ...bevy/crates/bevy_pbr/src/render/mesh_view_bindings.rs:23:88 | 23 | BindGroup, BindGroupLayout, BindGroupLayoutEntry, BindGroupLayoutEntryBuilder, BindingType, | ^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default ``` ## Solution - Import via globstar Signed-off-by: Torstein Grindvik Co-authored-by: Torstein Grindvik --- crates/bevy_pbr/src/render/mesh_view_bindings.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/crates/bevy_pbr/src/render/mesh_view_bindings.rs b/crates/bevy_pbr/src/render/mesh_view_bindings.rs index 015f435424..61140e4377 100644 --- a/crates/bevy_pbr/src/render/mesh_view_bindings.rs +++ b/crates/bevy_pbr/src/render/mesh_view_bindings.rs @@ -15,15 +15,7 @@ use bevy_ecs::{ use bevy_render::{ globals::{GlobalsBuffer, GlobalsUniform}, render_asset::RenderAssets, - render_resource::{ - binding_types::{ - sampler, storage_buffer_read_only_sized, storage_buffer_sized, texture_2d, - uniform_buffer, uniform_buffer_sized, - }, - BindGroup, BindGroupLayout, BindGroupLayoutEntry, BindGroupLayoutEntryBuilder, BindingType, - BufferBindingType, DynamicBindGroupEntries, DynamicBindGroupLayoutEntries, - SamplerBindingType, ShaderStages, TextureFormat, TextureSampleType, - }, + render_resource::{binding_types::*, *}, renderer::RenderDevice, texture::{BevyDefault, FallbackImageCubemap, FallbackImageMsaa, FallbackImageZero, Image}, view::{Msaa, ViewUniform, ViewUniforms},