Skip to content

Commit 4f8847e

Browse files
committed
Simplify DimensionExt
1 parent d026067 commit 4f8847e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dimension/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,12 @@ impl<D> DimensionExt for D
174174
{
175175
#[inline]
176176
fn axis(&self, axis: Axis) -> Ix {
177-
self.slice()[axis.axis()]
177+
self[axis.axis()]
178178
}
179179

180180
#[inline]
181181
fn set_axis(&mut self, axis: Axis, value: Ix) {
182-
self.slice_mut()[axis.axis()] = value;
182+
self[axis.axis()] = value;
183183
}
184184
}
185185

0 commit comments

Comments
 (0)