Skip to content

Commit

Permalink
remove useless unsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
Uriopass committed Dec 15, 2023
1 parent 0c146de commit 9117050
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions engine/src/gfx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1003,16 +1003,14 @@ impl GfxContext {
}

pub fn mipmap_module(&self) -> CompiledModule {
// Safety: added at startup
unsafe {
self.pipelines
.try_borrow()
.unwrap()
.shader_cache
.get("mipmap")
.unwrap_unchecked()
.clone()
}
// unwrap safety: added at startup
self.pipelines
.try_borrow()
.unwrap()
.shader_cache
.get("mipmap")
.unwrap()
.clone()
}
}

Expand Down

0 comments on commit 9117050

Please sign in to comment.