Skip to content

Commit 373c154

Browse files
committed
Fixed formatting
1 parent cfce366 commit 373c154

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

crates/common/src/integrations/nextjs.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,10 @@ impl Iterator for EscapeSequenceIter<'_> {
767767
Some(EscapeElement { byte_count: 1 })
768768
} else {
769769
// Multi-byte UTF-8 character
770-
let c = self.str_ref[self.pos..].chars().next().unwrap_or('\u{FFFD}');
770+
let c = self.str_ref[self.pos..]
771+
.chars()
772+
.next()
773+
.unwrap_or('\u{FFFD}');
771774
let len = c.len_utf8();
772775
self.pos += len;
773776
Some(EscapeElement { byte_count: len })
@@ -830,8 +833,11 @@ fn find_tchunks_impl(content: &str, skip_markers: bool) -> Vec<TChunkInfo> {
830833

831834
// Consume bytes using the appropriate iterator
832835
let content_end = if let Some(marker_bytes) = marker {
833-
let mut iter =
834-
EscapeSequenceIter::from_position_with_marker(content, header_end, marker_bytes);
836+
let mut iter = EscapeSequenceIter::from_position_with_marker(
837+
content,
838+
header_end,
839+
marker_bytes,
840+
);
835841
let mut consumed = 0;
836842
while consumed < declared_length {
837843
match iter.next() {

0 commit comments

Comments
 (0)