diff --git a/src/stream.rs b/src/stream.rs index bdde84b..142056f 100644 --- a/src/stream.rs +++ b/src/stream.rs @@ -96,7 +96,7 @@ impl InputStream { pub fn consume_remained_line(&mut self, f: impl FnOnce(&str) -> T) -> Result { let line = &self.line_buf[self.cursor..]; self.cursor = self.line_buf.len(); - return Ok(f(line)); + Ok(f(line)) } }