summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-05-24 23:02:42 +0200
committerHampusM <hampus@hampusmat.com>2024-05-24 23:10:10 +0200
commit99a5219144d40ee04d318c9eb0f87663d690629f (patch)
tree32ed008a50440784fa303162b808f53a586f0acb
parenta1b108022ef8f4035af98b9d96eb30302d16c32f (diff)
refactor(engine): remove useless match on window creation hint
-rw-r--r--engine/src/window.rs11
1 files changed, 2 insertions, 9 deletions
diff --git a/engine/src/window.rs b/engine/src/window.rs
index eed7901..0d0bac4 100644
--- a/engine/src/window.rs
+++ b/engine/src/window.rs
@@ -188,16 +188,9 @@ pub struct Builder
impl Builder
{
#[must_use]
- pub fn creation_hint(mut self, creation_hint: CreationHint, value: i32) -> Self
+ pub fn creation_hint(mut self, hint: CreationHint, value: i32) -> Self
{
- self.inner = self.inner.hint(
- match creation_hint {
- CreationHint::OpenGLDebugContext => {
- glfw::window::Hint::OpenGLDebugContext
- }
- },
- value,
- );
+ self.inner = self.inner.hint(hint, value);
self
}