From 370bbca0965be78a94e2c8823e0e804a388dbc79 Mon Sep 17 00:00:00 2001 From: Jerome Humbert Date: Mon, 8 Aug 2022 22:46:04 +0000 Subject: [PATCH] Make internal struct `ShaderData` non-`pub` (#5609) # Objective `ShaderData` is marked as public, but is an internal type only used by one other internal type, so it should be made private. ## Solution `ShaderData` is only used in `ShaderCache`, and the latter is private, so there is no need to make the former public. This change removes the `pub` keyword from `ShaderData`, hidding it as the implementation detail it is. Split from #5600 --- crates/bevy_render/src/render_resource/pipeline_cache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_render/src/render_resource/pipeline_cache.rs b/crates/bevy_render/src/render_resource/pipeline_cache.rs index 905c754bb4e703..0467928a33e314 100644 --- a/crates/bevy_render/src/render_resource/pipeline_cache.rs +++ b/crates/bevy_render/src/render_resource/pipeline_cache.rs @@ -72,7 +72,7 @@ impl CachedPipelineState { } #[derive(Default)] -pub struct ShaderData { +struct ShaderData { pipelines: HashSet, processed_shaders: HashMap, Arc>, resolved_imports: HashMap>,