aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/event.rs
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2020-10-29 07:17:33 +0300
committerGitHub <noreply@github.com>2020-10-29 07:17:33 +0300
commita99a9fd84ce5f7c3e79d172fc140fcdc0ffa47c9 (patch)
treed7668ea3349bdf0277e160b165612eec2e1688f5 /alacritty/src/event.rs
parent598684243b587a96c986a0bc9627aaad56b0dfc1 (diff)
downloadr-alacritty-a99a9fd84ce5f7c3e79d172fc140fcdc0ffa47c9.tar.gz
r-alacritty-a99a9fd84ce5f7c3e79d172fc140fcdc0ffa47c9.tar.bz2
r-alacritty-a99a9fd84ce5f7c3e79d172fc140fcdc0ffa47c9.zip
Error on warnings when running clippy
It should simplify tracking of new warnings raised on CI builds and when cross checking. This commit also enables warnings for 'rust_2018_idioms' and 'future_incompatible'.
Diffstat (limited to 'alacritty/src/event.rs')
-rw-r--r--alacritty/src/event.rs12
1 files changed, 7 insertions, 5 deletions
diff --git a/alacritty/src/event.rs b/alacritty/src/event.rs
index 5da2a939..7c3e786d 100644
--- a/alacritty/src/event.rs
+++ b/alacritty/src/event.rs
@@ -898,8 +898,8 @@ impl<N: Notify + OnResize> Processor<N> {
///
/// Doesn't take self mutably due to borrow checking.
fn handle_event<T>(
- event: GlutinEvent<Event>,
- processor: &mut input::Processor<T, ActionContext<N, T>>,
+ event: GlutinEvent<'_, Event>,
+ processor: &mut input::Processor<'_, T, ActionContext<'_, N, T>>,
) where
T: EventListener,
{
@@ -1044,7 +1044,7 @@ impl<N: Notify + OnResize> Processor<N> {
}
/// Check if an event is irrelevant and can be skipped.
- fn skip_event(event: &GlutinEvent<Event>) -> bool {
+ fn skip_event(event: &GlutinEvent<'_, Event>) -> bool {
match event {
GlutinEvent::WindowEvent { event, .. } => matches!(
event,
@@ -1066,8 +1066,10 @@ impl<N: Notify + OnResize> Processor<N> {
}
}
- fn reload_config<T>(path: &PathBuf, processor: &mut input::Processor<T, ActionContext<N, T>>)
- where
+ fn reload_config<T>(
+ path: &PathBuf,
+ processor: &mut input::Processor<'_, T, ActionContext<'_, N, T>>,
+ ) where
T: EventListener,
{
if !processor.ctx.message_buffer.is_empty() {