From 5f7885749c4d7e48869b1fc0be4d430601cdbbfa Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Wed, 27 Sep 2017 20:29:44 -0400 Subject: Use clippy = "*", update, and fix some warnings (#796) Because there are so many clippy warnings in the current codebase, this commit removes '#![cfg_attr(feature = "clippy", deny(clippy))]', to make it easier to fix warnings incrementally. --- src/window.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/window.rs') diff --git a/src/window.rs b/src/window.rs index d5d35b8e..f24def3a 100644 --- a/src/window.rs +++ b/src/window.rs @@ -192,10 +192,10 @@ impl Window { .with_vsync(true); let window = ::glutin::GlWindow::new(window, context, &event_loop)?; - /// Set OpenGL symbol loader + // Set OpenGL symbol loader gl::load_with(|symbol| window.get_proc_address(symbol) as *const _); - /// Make the context current so OpenGL operations can run + // Make the context current so OpenGL operations can run unsafe { window.make_current()?; } @@ -294,10 +294,10 @@ impl Window { use libc::{setlocale, LC_CTYPE}; let xlib = xlib::Xlib::open().expect("get xlib"); unsafe { - /// Use empty c string to fallback to LC_CTYPE in environment variables + // Use empty c string to fallback to LC_CTYPE in environment variables setlocale(LC_CTYPE, b"\0".as_ptr() as *const _); - /// Use empty c string for implementation dependent behavior, - /// which might be the XMODIFIERS set in env + // Use empty c string for implementation dependent behavior, + // which might be the XMODIFIERS set in env (xlib.XSetLocaleModifiers)(b"\0".as_ptr() as *const _); } } -- cgit v1.2.3-54-g00ecf