From 4039f7200091a0a2d78fa7463a40a5ccd20b5d7e Mon Sep 17 00:00:00 2001 From: Matthias Krüger Date: Tue, 18 Jun 2019 23:23:03 +0200 Subject: Fix redundant static lifetime clippy lint --- alacritty_terminal/src/ansi.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'alacritty_terminal/src/ansi.rs') diff --git a/alacritty_terminal/src/ansi.rs b/alacritty_terminal/src/ansi.rs index 27c07a57..07fc18ea 100644 --- a/alacritty_terminal/src/ansi.rs +++ b/alacritty_terminal/src/ansi.rs @@ -1420,7 +1420,7 @@ mod tests { #[test] fn parse_control_attribute() { - static BYTES: &'static [u8] = &[0x1b, 0x5b, 0x31, 0x6d]; + static BYTES: &[u8] = &[0x1b, 0x5b, 0x31, 0x6d]; let mut parser = Processor::new(); let mut handler = AttrHandler::default(); @@ -1434,7 +1434,7 @@ mod tests { #[test] fn parse_truecolor_attr() { - static BYTES: &'static [u8] = &[ + static BYTES: &[u8] = &[ 0x1b, 0x5b, 0x33, 0x38, 0x3b, 0x32, 0x3b, 0x31, 0x32, 0x38, 0x3b, 0x36, 0x36, 0x3b, 0x32, 0x35, 0x35, 0x6d, ]; @@ -1454,7 +1454,7 @@ mod tests { /// No exactly a test; useful for debugging #[test] fn parse_zsh_startup() { - static BYTES: &'static [u8] = &[ + static BYTES: &[u8] = &[ 0x1b, 0x5b, 0x31, 0x6d, 0x1b, 0x5b, 0x37, 0x6d, 0x25, 0x1b, 0x5b, 0x32, 0x37, 0x6d, 0x1b, 0x5b, 0x31, 0x6d, 0x1b, 0x5b, 0x30, 0x6d, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, @@ -1512,7 +1512,7 @@ mod tests { #[test] fn parse_designate_g0_as_line_drawing() { - static BYTES: &'static [u8] = &[0x1b, b'(', b'0']; + static BYTES: &[u8] = &[0x1b, b'(', b'0']; let mut parser = Processor::new(); let mut handler = CharsetHandler::default(); @@ -1526,7 +1526,7 @@ mod tests { #[test] fn parse_designate_g1_as_line_drawing_and_invoke() { - static BYTES: &'static [u8] = &[0x1b, 0x29, 0x30, 0x0e]; + static BYTES: &[u8] = &[0x1b, 0x29, 0x30, 0x0e]; let mut parser = Processor::new(); let mut handler = CharsetHandler::default(); -- cgit