From 26bc383f15fae383580e3faac1c0800a8dc17f99 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 9 Feb 2020 13:08:11 -0500 Subject: clippy --- src/parser.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/parser.rs') 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 } -- cgit v1.2.3-54-g00ecf