Skip to content

Commit 5c48e01

Browse files
kennytmThomas Bracht Laumann Jespersen
authored and
Thomas Bracht Laumann Jespersen
committed
Call rotate_left instead of rotate.
The `rotate` method has been deprecated in favor of `rotate_left` and `rotate_right` since rust-lang/rust#46777, and will be deleted in rust-lang/rust#48450.
1 parent c4bf471 commit 5c48e01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtest.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2611,7 +2611,7 @@ fn read2_abbreviated(mut child: Child) -> io::Result<Output> {
26112611
*skipped += data.len();
26122612
if data.len() <= TAIL_LEN {
26132613
tail[..data.len()].copy_from_slice(data);
2614-
tail.rotate(data.len());
2614+
tail.rotate_left(data.len());
26152615
} else {
26162616
tail.copy_from_slice(&data[(data.len() - TAIL_LEN)..]);
26172617
}

0 commit comments

Comments
 (0)