Skip to content

Commit a9634c7

Browse files
committed
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
1 parent b80636b commit a9634c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_render/src/render_resource/pipeline_cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl CachedPipelineState {
7272
}
7373

7474
#[derive(Default)]
75-
pub struct ShaderData {
75+
struct ShaderData {
7676
pipelines: HashSet<CachedPipelineId>,
7777
processed_shaders: HashMap<Vec<String>, Arc<ShaderModule>>,
7878
resolved_imports: HashMap<ShaderImport, Handle<Shader>>,

0 commit comments

Comments
 (0)