mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 04:40:04 -04:00
Fix warnings with latest nightly
This commit is contained in:
@@ -7,7 +7,6 @@ pub fn main() {
|
|||||||
#[cfg(web_platform)]
|
#[cfg(web_platform)]
|
||||||
mod wasm {
|
mod wasm {
|
||||||
use wasm_bindgen::prelude::*;
|
use wasm_bindgen::prelude::*;
|
||||||
use wasm_bindgen::JsCast;
|
|
||||||
use web_sys::HtmlCanvasElement;
|
use web_sys::HtmlCanvasElement;
|
||||||
use winit::{
|
use winit::{
|
||||||
dpi::PhysicalSize,
|
dpi::PhysicalSize,
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
#![allow(non_camel_case_types, non_snake_case, non_upper_case_globals)]
|
#![allow(non_camel_case_types, non_snake_case, non_upper_case_globals)]
|
||||||
|
|
||||||
use std::convert::TryInto;
|
|
||||||
|
|
||||||
use icrate::Foundation::{NSInteger, NSUInteger};
|
use icrate::Foundation::{NSInteger, NSUInteger};
|
||||||
use objc2::encode::{Encode, Encoding};
|
use objc2::encode::{Encode, Encoding};
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
use std::convert::TryInto;
|
|
||||||
use std::ops::Deref;
|
use std::ops::Deref;
|
||||||
use std::os::raw::c_char;
|
use std::os::raw::c_char;
|
||||||
use std::ptr::{self, NonNull};
|
use std::ptr::{self, NonNull};
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ use std::sync::atomic::Ordering;
|
|||||||
use std::sync::{Arc, Mutex};
|
use std::sync::{Arc, Mutex};
|
||||||
use std::time::{Duration, Instant};
|
use std::time::{Duration, Instant};
|
||||||
|
|
||||||
use sctk::reexports::calloop;
|
|
||||||
use sctk::reexports::calloop::Error as CalloopError;
|
use sctk::reexports::calloop::Error as CalloopError;
|
||||||
use sctk::reexports::calloop_wayland_source::WaylandSource;
|
use sctk::reexports::calloop_wayland_source::WaylandSource;
|
||||||
use sctk::reexports::client::globals;
|
use sctk::reexports::client::globals;
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
use std::sync::atomic::{AtomicBool, Ordering};
|
use std::sync::atomic::{AtomicBool, Ordering};
|
||||||
use std::sync::{Arc, Mutex};
|
use std::sync::{Arc, Mutex};
|
||||||
|
|
||||||
use sctk::reexports::calloop;
|
|
||||||
use sctk::reexports::client::protocol::wl_display::WlDisplay;
|
use sctk::reexports::client::protocol::wl_display::WlDisplay;
|
||||||
use sctk::reexports::client::protocol::wl_surface::WlSurface;
|
use sctk::reexports::client::protocol::wl_surface::WlSurface;
|
||||||
use sctk::reexports::client::Proxy;
|
use sctk::reexports::client::Proxy;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ use std::{ptr, slice, str};
|
|||||||
use calloop::generic::Generic;
|
use calloop::generic::Generic;
|
||||||
use calloop::EventLoop as Loop;
|
use calloop::EventLoop as Loop;
|
||||||
use calloop::{ping::Ping, Readiness};
|
use calloop::{ping::Ping, Readiness};
|
||||||
use libc::{self, setlocale, LC_CTYPE};
|
use libc::{setlocale, LC_CTYPE};
|
||||||
use log::warn;
|
use log::warn;
|
||||||
|
|
||||||
use x11rb::connection::RequestConnection;
|
use x11rb::connection::RequestConnection;
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
use std::{
|
use std::{
|
||||||
self,
|
|
||||||
ffi::c_void,
|
ffi::c_void,
|
||||||
panic::{AssertUnwindSafe, UnwindSafe},
|
panic::{AssertUnwindSafe, UnwindSafe},
|
||||||
ptr,
|
ptr,
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ use crate::window::WindowId;
|
|||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
cell::{Cell, RefCell},
|
cell::{Cell, RefCell},
|
||||||
clone::Clone,
|
|
||||||
collections::{HashSet, VecDeque},
|
collections::{HashSet, VecDeque},
|
||||||
iter,
|
iter,
|
||||||
ops::Deref,
|
ops::Deref,
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ use crate::keyboard::{Key, KeyLocation, ModifiersState, NamedKey, PhysicalKey};
|
|||||||
|
|
||||||
use smol_str::SmolStr;
|
use smol_str::SmolStr;
|
||||||
use std::cell::OnceCell;
|
use std::cell::OnceCell;
|
||||||
use std::convert::TryInto;
|
|
||||||
use wasm_bindgen::prelude::wasm_bindgen;
|
use wasm_bindgen::prelude::wasm_bindgen;
|
||||||
use wasm_bindgen::{JsCast, JsValue};
|
use wasm_bindgen::{JsCast, JsValue};
|
||||||
use web_sys::{KeyboardEvent, MouseEvent, PointerEvent, WheelEvent};
|
use web_sys::{KeyboardEvent, MouseEvent, PointerEvent, WheelEvent};
|
||||||
|
|||||||
Reference in New Issue
Block a user