diff options
author | Joe Wilm <joe@jwilm.com> | 2016-09-23 10:12:11 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-09-23 10:12:11 -0700 |
commit | be09467d48a5b7644411c2a09d948ee89509894e (patch) | |
tree | ea49bab6e759d617c45ea0c8ed10a6dda918e185 /src/ansi.rs | |
parent | cbeec3df5a19487a9dfaf3b285ab6722e69fee54 (diff) | |
download | alacritty-be09467d48a5b7644411c2a09d948ee89509894e.tar.gz alacritty-be09467d48a5b7644411c2a09d948ee89509894e.zip |
Fix some compiler warnings
Also enables debug symbols in release profile by default. Until
Alacritty ships, there's going to be lots of perf analysis which needs
debug symbols.
The PriorityMutex low priority method was never used. Now it's just a
fair mutex.
Diffstat (limited to 'src/ansi.rs')
-rw-r--r-- | src/ansi.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ansi.rs b/src/ansi.rs index 8a4a36af..48f79d2b 100644 --- a/src/ansi.rs +++ b/src/ansi.rs @@ -52,7 +52,7 @@ struct ProcessorState; /// Processor creates a Performer when running advance and passes the Performer /// to vte::Parser. struct Performer<'a, H: Handler + TermInfo + 'a> { - state: &'a mut ProcessorState, + _state: &'a mut ProcessorState, handler: &'a mut H } @@ -61,7 +61,7 @@ impl<'a, H: Handler + TermInfo + 'a> Performer<'a, H> { #[inline] pub fn new<'b>(state: &'b mut ProcessorState, handler: &'b mut H) -> Performer<'b, H> { Performer { - state: state, + _state: state, handler: handler } } @@ -648,9 +648,7 @@ impl<'a, H: Handler + TermInfo + 'a> vte::Perform for Performer<'a, H> { } #[inline] - fn esc_dispatch(&mut self, params: &[i64], intermediates: &[u8], ignore: bool, byte: u8) { - let private = intermediates.get(0).map(|b| *b == b'?').unwrap_or(false); - + fn esc_dispatch(&mut self, params: &[i64], intermediates: &[u8], _ignore: bool, byte: u8) { match byte { b'D' => self.handler.linefeed(), b'E' => self.handler.newline(), |