Bug 1531512 - Mark unused variables as unused for non-windows. r=kvark

rustc 1.33 is smart enough to detect and complain about this.

Differential Revision: https://phabricator.services.mozilla.com/D21601

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Kartikaya Gupta 2019-03-01 04:04:46 +00:00
Родитель 20604119b5
Коммит a23137f08f
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -278,11 +278,11 @@ fn make_window(
};
if angle {
let (window, context) = angle::Context::with_window(
let (_window, _context) = angle::Context::with_window(
window_builder, context_builder, events_loop
).unwrap();
let gl = init(&context);
WindowWrapper::Angle(window, context, gl)
let gl = init(&_context);
WindowWrapper::Angle(_window, _context, gl)
} else {
let window = glutin::GlWindow::new(window_builder, context_builder, events_loop)
.unwrap();