From 455ddd6fe989b2ed89d61c57cd50f150154ac3ff Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Sat, 26 Aug 2023 22:19:42 +0200 Subject: [PATCH] Lints --- na-openxr-info/src/lib.rs | 2 +- na-winit-glutin/src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/na-openxr-info/src/lib.rs b/na-openxr-info/src/lib.rs index 8003c78..de9b263 100644 --- a/na-openxr-info/src/lib.rs +++ b/na-openxr-info/src/lib.rs @@ -1,4 +1,4 @@ -///! Based on https://github.com/Ralith/openxrs/blob/master/openxr/examples/hello.rs +//! Based on https://github.com/Ralith/openxrs/blob/master/openxr/examples/hello.rs use openxr as xr; #[cfg(target_os = "android")] diff --git a/na-winit-glutin/src/lib.rs b/na-winit-glutin/src/lib.rs index 692025e..6a49c29 100644 --- a/na-winit-glutin/src/lib.rs +++ b/na-winit-glutin/src/lib.rs @@ -245,7 +245,7 @@ impl App { .build(Some(raw_window_handle)); unsafe { glutin_display - .create_context(&config, &context_attributes) + .create_context(config, &context_attributes) .unwrap_or_else(|_| { glutin_display .create_context(config, &fallback_context_attributes) @@ -268,7 +268,7 @@ impl App { } fn ensure_surface_and_context(&mut self, event_loop: &EventLoopWindowTarget) { - let window = winit::window::Window::new(&event_loop).unwrap(); + let window = winit::window::Window::new(event_loop).unwrap(); let raw_window_handle = window.raw_window_handle(); // Lazily initialize, egl, wgl, glx etc