File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -110,18 +110,12 @@ copy_and_clone! {SliceOrIndex}
110
110
impl SliceOrIndex {
111
111
/// Returns `true` if `self` is a `Slice` value.
112
112
pub fn is_slice ( & self ) -> bool {
113
- match self {
114
- SliceOrIndex :: Slice { .. } => true ,
115
- _ => false ,
116
- }
113
+ matches ! ( self , SliceOrIndex :: Slice { .. } )
117
114
}
118
115
119
116
/// Returns `true` if `self` is an `Index` value.
120
117
pub fn is_index ( & self ) -> bool {
121
- match self {
122
- SliceOrIndex :: Index ( _) => true ,
123
- _ => false ,
124
- }
118
+ matches ! ( self , SliceOrIndex :: Index ( _) )
125
119
}
126
120
127
121
/// Returns a new `SliceOrIndex` with the given step size (multiplied with
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ where
165
165
let mut res = Array :: from_shape_vec ( res_dim, v) ?;
166
166
167
167
res. axis_iter_mut ( axis)
168
- . zip ( arrays. into_iter ( ) )
168
+ . zip ( arrays. iter ( ) )
169
169
. for_each ( |( mut assign_view, array) | {
170
170
assign_view. assign ( & array) ;
171
171
} ) ;
You can’t perform that action at this time.
0 commit comments