Skip to content

Commit

Permalink
Use expect instead of unwrap for vertex shader
Browse files Browse the repository at this point in the history
oops
  • Loading branch information
bschwind authored and Zakarum committed Sep 24, 2019
1 parent b48f5d1 commit 2d5a4a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shader/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ impl<B: Backend> ShaderSet<B> {
vertex: self
.shaders
.get(&ShaderStageFlags::VERTEX)
.unwrap()
.expect("ShaderSet doesn't contain vertex shader")
.get_entry_point()?
.unwrap(),
fragment: match self.shaders.get(&ShaderStageFlags::FRAGMENT) {
Expand Down

0 comments on commit 2d5a4a1

Please sign in to comment.