diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-02-09 13:08:11 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-02-09 13:08:11 -0500 |
commit | 26bc383f15fae383580e3faac1c0800a8dc17f99 (patch) | |
tree | dec6ff026cd7da3f467dc24bcb96ff5673472d35 /src/parser.rs | |
parent | 1cc79222c23fc624cfa53e2ada0b61aad618b9d9 (diff) | |
download | vt100-rust-26bc383f15fae383580e3faac1c0800a8dc17f99.tar.gz vt100-rust-26bc383f15fae383580e3faac1c0800a8dc17f99.zip |
clippy
Diffstat (limited to 'src/parser.rs')
-rw-r--r-- | src/parser.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.rs b/src/parser.rs index 613e18e..45bef2f 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -8,6 +8,7 @@ pub struct Parser { impl Parser { /// Creates a new terminal parser of the given size and with the given /// amount of scrollback. + #[must_use] pub fn new(rows: u16, cols: u16, scrollback_len: usize) -> Self { Self { parser: vte::Parser::new(), @@ -48,6 +49,7 @@ impl Parser { /// Returns a reference to a `Screen` object containing the terminal /// state. + #[must_use] pub fn screen(&self) -> &crate::screen::Screen { &self.screen } |