aboutsummaryrefslogtreecommitdiff
path: root/src/event.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2018-12-09 17:04:02 +0100
committerChristian Duerr <contact@christianduerr.com>2018-12-10 17:40:23 +0100
commit7ec36f2626aa601f4b1cd85e9712bc81903e6170 (patch)
tree214bfca4eae72490156eb666a0fba3c5731961a5 /src/event.rs
parent926b92e864cbda9105f383df7adc3f73aef05ca0 (diff)
downloadalacritty-7ec36f2626aa601f4b1cd85e9712bc81903e6170.tar.gz
alacritty-7ec36f2626aa601f4b1cd85e9712bc81903e6170.zip
Fix Rust 2018 edition idioms
Diffstat (limited to 'src/event.rs')
-rw-r--r--src/event.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event.rs b/src/event.rs
index b0b6b333..39ed25f6 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -34,7 +34,7 @@ pub trait Notify {
fn notify<B: Into<Cow<'static, [u8]>>>(&mut self, _: B);
}
-pub struct ActionContext<'a, N: 'a> {
+pub struct ActionContext<'a, N> {
pub notifier: &'a mut N,
pub terminal: &'a mut Term,
pub size_info: &'a mut SizeInfo,
@@ -456,7 +456,7 @@ impl<N: Notify> Processor<N> {
{
// Ditto on lazy initialization for context and processor.
let context;
- let mut processor: input::Processor<ActionContext<N>>;
+ let mut processor: input::Processor<'_, ActionContext<'_, N>>;
let print_events = self.print_events;