1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2024-12-07 11:13:17 +02:00

fix: fix test fail

This commit is contained in:
yorkart 2024-12-04 10:53:18 +08:00
parent 93c220bf57
commit bffc125455

View File

@ -51,8 +51,7 @@ where
}
fn consumed_remain(&mut self) {
let buf = &self.rdr.buffer()[0..self.core.pos()];
let consumed = self.core.roll(buf);
let consumed = self.core.pos();
self.rdr.consume(consumed);
}