clippy: fix redundant_field_names warnings

This commit is contained in:
Philippe Renon 2020-10-26 13:25:55 +01:00
parent ffef8e7f54
commit cf54580fac
2 changed files with 5 additions and 5 deletions

View File

@ -48,11 +48,11 @@ macro_rules! iterator {
}; };
$Name { $Name {
ptr: ptr, ptr,
inner_ptr: ptr, inner_ptr: ptr,
inner_end, inner_end,
size: shape.0.value() * shape.1.value(), size: shape.0.value() * shape.1.value(),
strides: strides, strides,
_phantoms: PhantomData, _phantoms: PhantomData,
} }
} }

View File

@ -39,9 +39,9 @@ macro_rules! slice_storage_impl(
CStride: Dim { CStride: Dim {
$T { $T {
ptr: ptr, ptr,
shape: shape, shape,
strides: strides, strides,
_phantoms: PhantomData _phantoms: PhantomData
} }
} }