diff options
author | Aaron Hill <aa1ronham@gmail.com> | 2017-09-27 20:29:44 -0400 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-09-27 17:29:44 -0700 |
commit | 5f7885749c4d7e48869b1fc0be4d430601cdbbfa (patch) | |
tree | 77916f2d24f71c846700139bbeaacec1f8699928 /src/window.rs | |
parent | eb231b3e70b87875df4bdd1974d5e94704024d70 (diff) | |
download | alacritty-5f7885749c4d7e48869b1fc0be4d430601cdbbfa.tar.gz alacritty-5f7885749c4d7e48869b1fc0be4d430601cdbbfa.zip |
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.
Diffstat (limited to 'src/window.rs')
-rw-r--r-- | src/window.rs | 10 |
1 files changed, 5 insertions, 5 deletions
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 _); } } |