Skip to content

Commit

Permalink
Fix clippy single-match warning
Browse files Browse the repository at this point in the history
  • Loading branch information
yrns committed Nov 28, 2020
1 parent 006e6e0 commit e6867e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/bevy_render/src/pipeline/render_pipelines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ pub fn draw_render_pipelines_system(
AssetEvent::Modified { handle } => {
changed_shaders.insert(handle);
}
_ => (),
// Creating shaders on the fly is unhandled since they
// have to exist already when assigned to a pipeline. If a
// shader is removed the pipeline keeps using its
// specialized version. Maybe this should be a warning?
AssetEvent::Created { .. } | AssetEvent::Removed { .. } => (),
}
}
draw_context
Expand Down

0 comments on commit e6867e9

Please sign in to comment.