diff options
Diffstat (limited to 'alacritty_terminal')
-rw-r--r-- | alacritty_terminal/src/ansi.rs | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/alacritty_terminal/src/ansi.rs b/alacritty_terminal/src/ansi.rs index 0877fbff..a554ab72 100644 --- a/alacritty_terminal/src/ansi.rs +++ b/alacritty_terminal/src/ansi.rs @@ -893,6 +893,7 @@ where } } + #[allow(clippy::cognitive_complexity)] #[inline] fn csi_dispatch( &mut self, @@ -1022,10 +1023,7 @@ where for arg in args { match Mode::from_primitive(intermediate, *arg) { Some(mode) => handler.unset_mode(mode), - None => { - unhandled!(); - return; - }, + None => unhandled!(), } } }, @@ -1044,10 +1042,7 @@ where for arg in args { match Mode::from_primitive(intermediate, *arg) { Some(mode) => handler.set_mode(mode), - None => { - unhandled!(); - return; - }, + None => unhandled!(), } } }, @@ -1058,10 +1053,7 @@ where for attr in attrs_from_sgr_parameters(args) { match attr { Some(attr) => handler.terminal_attribute(attr), - None => { - unhandled!(); - return; - }, + None => unhandled!(), } } } |