summaryrefslogtreecommitdiff
path: root/alacritty_terminal
diff options
context:
space:
mode:
Diffstat (limited to 'alacritty_terminal')
-rw-r--r--alacritty_terminal/src/event.rs2
-rw-r--r--alacritty_terminal/src/event_loop.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/alacritty_terminal/src/event.rs b/alacritty_terminal/src/event.rs
index a1252570..70d16127 100644
--- a/alacritty_terminal/src/event.rs
+++ b/alacritty_terminal/src/event.rs
@@ -70,7 +70,7 @@ pub trait Notify {
/// Notify that an escape sequence should be written to the PTY.
///
/// TODO this needs to be able to error somehow.
- fn notify<B: Into<Cow<'static, [u8]>>>(&mut self, _: B);
+ fn notify<B: Into<Cow<'static, [u8]>>>(&self, _: B);
}
/// Types that are interested in when the display is resized.
diff --git a/alacritty_terminal/src/event_loop.rs b/alacritty_terminal/src/event_loop.rs
index 09c71668..c3224dfe 100644
--- a/alacritty_terminal/src/event_loop.rs
+++ b/alacritty_terminal/src/event_loop.rs
@@ -62,7 +62,7 @@ struct Writing {
pub struct Notifier(pub Sender<Msg>);
impl event::Notify for Notifier {
- fn notify<B>(&mut self, bytes: B)
+ fn notify<B>(&self, bytes: B)
where
B: Into<Cow<'static, [u8]>>,
{