fix rust_wasm_build (#1824)

This commit is contained in:
007gzs
2025-02-27 14:15:50 +08:00
committed by GitHub
parent 45fdd95a9c
commit 5bece9c8ef
5 changed files with 11 additions and 7 deletions

View File

@@ -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 => {