From 09cf026a9de2e1aef43307d64d41a0251159c113 Mon Sep 17 00:00:00 2001 From: Patrick Horlebein Date: Mon, 29 Dec 2014 13:46:44 +0100 Subject: Minor match clause cleanup --- src/osx/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/osx') diff --git a/src/osx/mod.rs b/src/osx/mod.rs index e2b9bc2..ce02779 100644 --- a/src/osx/mod.rs +++ b/src/osx/mod.rs @@ -272,9 +272,7 @@ impl Window { fn create_context(view: id, vsync: bool, gl_version: Option<(uint, uint)>) -> Option { let profile = { match gl_version { - None => NSOpenGLPFAOpenGLProfiles::NSOpenGLProfileVersionLegacy as uint, - Some((0...2, _)) => NSOpenGLPFAOpenGLProfiles::NSOpenGLProfileVersionLegacy as uint, - Some((3, 0)) => NSOpenGLPFAOpenGLProfiles::NSOpenGLProfileVersionLegacy as uint, + None | Some((0...2, _)) | Some((3, 0)) => NSOpenGLPFAOpenGLProfiles::NSOpenGLProfileVersionLegacy as uint, Some((3, 1...2)) => NSOpenGLPFAOpenGLProfiles::NSOpenGLProfileVersion3_2Core as uint, Some((_, _)) => NSOpenGLPFAOpenGLProfiles::NSOpenGLProfileVersion4_1Core as uint, } -- cgit v1.2.3