Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
007gzs committed Feb 27, 2025
1 parent 8be591d commit 3646502
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions plugins/wasm-rust/src/event_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,7 @@ impl EventStream {
}

fn is_2eol(&self, i: usize) -> Option<usize> {
let size1 = match self.is_eol(i) {
None => return None,
Some(size1) => size1,
};
let size1 = self.is_eol(i)?;
if i + size1 < self.buffer.len() {
match self.is_eol(i + size1) {
None => {
Expand Down

0 comments on commit 3646502

Please sign in to comment.