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 {
ptr: ptr,
ptr,
inner_ptr: ptr,
inner_end,
size: shape.0.value() * shape.1.value(),
strides: strides,
strides,
_phantoms: PhantomData,
}
}

View File

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