diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-02 14:39:25 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-02 14:39:25 -0400 |
commit | 2e98a0d7f91691f2f5b693eb3a0434ca711e8193 (patch) | |
tree | 7e0f0df14bcb435d80573ba42c5322851b7d0177 | |
parent | 09fccc8d8a30ef7eea6a43aaff85fa7ec1ad72ca (diff) | |
download | vt100-rust-2e98a0d7f91691f2f5b693eb3a0434ca711e8193.tar.gz vt100-rust-2e98a0d7f91691f2f5b693eb3a0434ca711e8193.zip |
these can just return directly
-rw-r--r-- | src/screen.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/screen.rs b/src/screen.rs index 679f139..f895b49 100644 --- a/src/screen.rs +++ b/src/screen.rs @@ -507,13 +507,13 @@ impl State { 38 => { i += 1; if i >= params.len() { - unimplemented!() + return; } match params[i] { 2 => { i += 3; if i >= params.len() { - unimplemented!() + return; } self.attrs.fgcolor = crate::color::Color::Rgb( params[i - 2] as u8, @@ -524,7 +524,7 @@ impl State { 5 => { i += 1; if i >= params.len() { - unimplemented!() + return; } self.attrs.fgcolor = crate::color::Color::Idx(params[i] as u8); @@ -542,13 +542,13 @@ impl State { 48 => { i += 1; if i >= params.len() { - unimplemented!() + return; } match params[i] { 2 => { i += 3; if i >= params.len() { - unimplemented!() + return; } self.attrs.bgcolor = crate::color::Color::Rgb( params[i - 2] as u8, @@ -559,7 +559,7 @@ impl State { 5 => { i += 1; if i >= params.len() { - unimplemented!() + return; } self.attrs.bgcolor = crate::color::Color::Idx(params[i] as u8); |