Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
h-a-n-a committed Dec 12, 2024
1 parent e60d734 commit 6586272
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ impl<'a> Iterator for Lines<'_, 'a> {
let rope = Rope::from(&chunk[*in_chunk_byte_idx..end]);
*in_chunk_byte_idx = end;
*byte_idx += *in_chunk_byte_idx;
return Some(rope);
Some(rope)
} else {
// Check if the current chunk has left over bytes.

Expand Down Expand Up @@ -629,9 +629,9 @@ impl<'a> Iterator for Lines<'_, 'a> {
});
// Advance the byte index to the end of the line.
*byte_idx += len;
return Some(Rope {
Some(Rope {
repr: Repr::Complex(Rc::new(raw)),
});
})
} else {
// If we did not find a newline in the next few chunks,
// return the remaining bytes.
Expand Down

0 comments on commit 6586272

Please sign in to comment.