From 99a5219144d40ee04d318c9eb0f87663d690629f Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 24 May 2024 23:02:42 +0200 Subject: refactor(engine): remove useless match on window creation hint --- engine/src/window.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'engine') 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 } -- cgit v1.2.3-18-g5258