move applicable copy_from_slice to copy_within

This commit is contained in:
Henry Schimke
2022-12-30 09:00:53 -06:00
parent 4f7478245a
commit a345a27b78
6 changed files with 13 additions and 13 deletions

View File

@@ -803,8 +803,8 @@ impl RSSExpandedReader {
// Make 'counters' hold 1-4
let mut counters = self.decodeFinderCounters;
let slc = counters[..counters.len() - 1].to_vec();
counters[1..].copy_from_slice(&slc);
let counters_len = counters.len();
counters.copy_within(..counters_len - 1, 1);
// System.arraycopy(counters, 0, counters, 1, counters.length - 1);
counters[0] = firstCounter as u32;