From 81147b2595b2ffa0c41f89f3dd61237997446974 Mon Sep 17 00:00:00 2001 From: TheVeryDarkness <3266343194@qq.com> Date: Sat, 10 Aug 2024 19:43:49 +0800 Subject: [PATCH] Remove a `return` to make clippy happy. --- src/stream.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) } }