File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -1171,15 +1171,7 @@ impl Value {
1171
1171
Value :: Byte ( b) => b. transpose_depth ( depth, amnt) ,
1172
1172
Value :: Complex ( c) => c. transpose_depth ( depth, amnt) ,
1173
1173
Value :: Char ( c) => c. transpose_depth ( depth, amnt) ,
1174
- Value :: Box ( b) => {
1175
- if depth == b. rank ( ) {
1176
- for b in b. data . as_mut_slice ( ) {
1177
- b. 0 . transpose ( ) ;
1178
- }
1179
- } else {
1180
- b. transpose_depth ( depth, amnt) ;
1181
- }
1182
- }
1174
+ Value :: Box ( b) => b. transpose_depth ( depth, amnt) ,
1183
1175
}
1184
1176
}
1185
1177
/// Like transpose, but the axes are reversed instead of rotated
@@ -1189,15 +1181,7 @@ impl Value {
1189
1181
Value :: Byte ( b) => b. retropose_depth ( depth) ,
1190
1182
Value :: Complex ( c) => c. retropose_depth ( depth) ,
1191
1183
Value :: Char ( c) => c. retropose_depth ( depth) ,
1192
- Value :: Box ( b) => {
1193
- if depth == b. rank ( ) {
1194
- for b in b. data . as_mut_slice ( ) {
1195
- b. 0 . retropose_depth ( 0 ) ;
1196
- }
1197
- } else {
1198
- b. retropose_depth ( depth) ;
1199
- }
1200
- }
1184
+ Value :: Box ( b) => b. retropose_depth ( depth) ,
1201
1185
}
1202
1186
}
1203
1187
}
You can’t perform that action at this time.
0 commit comments