diff --git a/src/iter.rs b/src/iter.rs index cc038779..31b5c8a7 100644 --- a/src/iter.rs +++ b/src/iter.rs @@ -134,6 +134,11 @@ impl io::Seek for ProgressBarIter { pos }) } + // Pass this through to preserve optimizations that the inner I/O object may use here + // Also avoid sending a set_position update when the position hasn't changed + fn stream_position(&mut self) -> io::Result { + self.it.stream_position() + } } impl io::Write for ProgressBarIter {