Fix clippy warnings
This commit is contained in:
parent
7d22310a4a
commit
de12f03812
|
@ -917,6 +917,7 @@ impl<'a, N: Notify + 'a, T: EventListener> input::ActionContext<T> for ActionCon
|
||||||
self.config
|
self.config
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(target_os = "macos")]
|
||||||
fn event_loop(&self) -> &EventLoopWindowTarget<Event> {
|
fn event_loop(&self) -> &EventLoopWindowTarget<Event> {
|
||||||
self.event_loop
|
self.event_loop
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@ use winit::dpi::PhysicalPosition;
|
||||||
use winit::event::{
|
use winit::event::{
|
||||||
ElementState, Modifiers, MouseButton, MouseScrollDelta, Touch as TouchEvent, TouchPhase,
|
ElementState, Modifiers, MouseButton, MouseScrollDelta, Touch as TouchEvent, TouchPhase,
|
||||||
};
|
};
|
||||||
|
#[cfg(target_os = "macos")]
|
||||||
use winit::event_loop::EventLoopWindowTarget;
|
use winit::event_loop::EventLoopWindowTarget;
|
||||||
use winit::keyboard::ModifiersState;
|
use winit::keyboard::ModifiersState;
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
|
@ -103,6 +104,7 @@ pub trait ActionContext<T: EventListener> {
|
||||||
fn pop_message(&mut self) {}
|
fn pop_message(&mut self) {}
|
||||||
fn message(&self) -> Option<&Message>;
|
fn message(&self) -> Option<&Message>;
|
||||||
fn config(&self) -> &UiConfig;
|
fn config(&self) -> &UiConfig;
|
||||||
|
#[cfg(target_os = "macos")]
|
||||||
fn event_loop(&self) -> &EventLoopWindowTarget<Event>;
|
fn event_loop(&self) -> &EventLoopWindowTarget<Event>;
|
||||||
fn mouse_mode(&self) -> bool;
|
fn mouse_mode(&self) -> bool;
|
||||||
fn clipboard_mut(&mut self) -> &mut Clipboard;
|
fn clipboard_mut(&mut self) -> &mut Clipboard;
|
||||||
|
@ -1216,6 +1218,7 @@ mod tests {
|
||||||
self.clipboard
|
self.clipboard
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(target_os = "macos")]
|
||||||
fn event_loop(&self) -> &EventLoopWindowTarget<Event> {
|
fn event_loop(&self) -> &EventLoopWindowTarget<Event> {
|
||||||
unimplemented!();
|
unimplemented!();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue