diff --git a/mordant-baseline.toml b/mordant-baseline.toml index 3f7bd7362d8c..28111e5bf22d 100644 --- a/mordant-baseline.toml +++ b/mordant-baseline.toml @@ -1,5 +1,3 @@ -[bun_ast] - [bun_bundler] "defaulted_failure:src/bundler/bundle_v2.rs" = 2 "narrowed_two_ways:src/bundler/bundle_v2.rs" = 1 @@ -31,7 +29,6 @@ "defaulted_failure:src/runtime/server/RequestContext.rs" = 1 "defaulted_failure:src/runtime/test_runner/pretty_format.rs" = 4 "error_collapsed_to_bool:src/runtime/api/bun/Terminal.rs" = 1 -"error_collapsed_to_bool:src/runtime/api/bun/h2_frame_parser.rs" = 32 "error_collapsed_to_bool:src/runtime/ffi/ffi_body.rs" = 1 "field_valid_only_when:src/runtime/shell/builtin/rm.rs" = 1 "reimplemented_helper:src/runtime/api/bun/Terminal.rs" = 1 @@ -44,7 +41,5 @@ "unchecked_construction:src/runtime/server/HTMLBundle.rs" = 2 "unchecked_construction:src/runtime/server/server_body.rs" = 5 -[bun_sql_jsc] - [bun_sys] "error_collapsed_to_bool:src/sys/lib.rs" = 4 diff --git a/src/runtime/api/bun/h2_frame_parser.rs b/src/runtime/api/bun/h2_frame_parser.rs index 3946d78284ee..4d01e53c1789 100644 --- a/src/runtime/api/bun/h2_frame_parser.rs +++ b/src/runtime/api/bun/h2_frame_parser.rs @@ -294,13 +294,13 @@ impl UInt31WithReserved { self.0 } #[inline] - fn write(self, writer: &mut impl WireWriter) -> bool { + fn write(self, writer: &mut impl WireWriter) -> bun_io::Result<()> { let mut value: u32 = self.uint31(); if self.reserved() { value |= 0x8000_0000; } value = value.swap_bytes(); - writer.write_all(&value.to_ne_bytes()).is_ok() + writer.write_all(&value.to_ne_bytes()) } } @@ -320,10 +320,10 @@ const _: () = assert!(core::mem::size_of::() == StreamPriority:: impl StreamPriority { pub(crate) const BYTE_SIZE: usize = 5; #[inline] - fn write(self, writer: &mut impl WireWriter) -> bool { + fn write(self, writer: &mut impl WireWriter) -> bun_io::Result<()> { let mut swap = self; swap.stream_identifier = swap.stream_identifier.swap_bytes(); - writer.write_all(bytemuck::bytes_of(&swap)).is_ok() + writer.write_all(bytemuck::bytes_of(&swap)) } } @@ -350,7 +350,7 @@ impl Default for FrameHeader { impl FrameHeader { pub const BYTE_SIZE: usize = 9; #[inline] - fn write(&self, writer: &mut impl WireWriter, frames_sent: &Cell) -> bool { + fn write(&self, writer: &mut impl WireWriter, frames_sent: &Cell) -> bun_io::Result<()> { frames_sent.set(frames_sent.get() + 1); let mut buf = [0u8; Self::BYTE_SIZE]; buf[0] = ((self.length >> 16) & 0xFF) as u8; @@ -359,7 +359,7 @@ impl FrameHeader { buf[3] = self.type_; buf[4] = self.flags; buf[5..9].copy_from_slice(&self.stream_identifier.to_be_bytes()); - writer.write_all(&buf).is_ok() + writer.write_all(&buf) } /// Decode a complete 9-byte big-endian frame header. /// @@ -1427,7 +1427,9 @@ impl Stream { length: 0, }; owned_frame = Some(frame); - break 'brk data_header.write(&mut writer, &client.frames_sent_legacy); + break 'brk data_header + .write(&mut writer, &client.frames_sent_legacy) + .is_ok(); } else { let max_size = frame_remaining .min(