We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 585450f commit cf35be3Copy full SHA for cf35be3
src/algorithm/dyadic/structure.rs
@@ -756,10 +756,10 @@ impl<T: ArrayValue> Array<T> {
756
let row_count = self.row_count();
757
let abs_dropping = dropping.unsigned_abs().min(row_count);
758
if dropping >= 0 {
759
- self.data.as_mut_slice().rotate_left(abs_dropping * row_len);
+ self.data = self.data.slice(abs_dropping * row_len..)
760
+ } else {
761
self.data.truncate((row_count - abs_dropping) * row_len);
762
}
- self.data.truncate((row_count - abs_dropping) * row_len);
763
if self.shape.is_empty() {
764
self.shape.push(1);
765
0 commit comments