Skip to content

Commit

Permalink
Remove a return to make clippy happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheVeryDarkness authored Aug 10, 2024
1 parent 06306bb commit 81147b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl<B: BufRead> InputStream<B> {
pub fn consume_remained_line<T>(&mut self, f: impl FnOnce(&str) -> T) -> Result<T, Error> {
let line = &self.line_buf[self.cursor..];
self.cursor = self.line_buf.len();
return Ok(f(line));
Ok(f(line))
}
}

Expand Down

0 comments on commit 81147b2

Please sign in to comment.