Skip to content

Commit

Permalink
Call rotate_left instead of rotate.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kennytm authored and Thomas Bracht Laumann Jespersen committed Feb 27, 2018
1 parent c4bf471 commit 5c48e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2611,7 +2611,7 @@ fn read2_abbreviated(mut child: Child) -> io::Result<Output> {
*skipped += data.len();
if data.len() <= TAIL_LEN {
tail[..data.len()].copy_from_slice(data);
tail.rotate(data.len());
tail.rotate_left(data.len());
} else {
tail.copy_from_slice(&data[(data.len() - TAIL_LEN)..]);
}
Expand Down

0 comments on commit 5c48e01

Please sign in to comment.