Skip to content

Commit 1263756

Browse files
committed
fix by considering position
1 parent 4b39b4d commit 1263756

File tree

1 file changed

+1
-1
lines changed
  • turbopack/crates/turbo-tasks-fs/src

1 file changed

+1
-1
lines changed

turbopack/crates/turbo-tasks-fs/src/rope.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ impl BufRead for RopeReader {
743743
unreachable!()
744744
};
745745

746-
Ok(bytes.get_ref())
746+
Ok(&bytes.get_ref()[bytes.position() as usize..])
747747
}
748748

749749
fn consume(&mut self, amt: usize) {

0 commit comments

Comments
 (0)