Skip to content

Commit c1afbbf

Browse files
committed
Combine DimAdd impls for Ix0
1 parent 532bead commit c1afbbf

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/dimension/ops.rs

+3-8
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,9 @@ macro_rules! impl_dimadd_const_out_dyn {
2727
};
2828
}
2929

30-
impl_dimadd_const_out_const!(0, 0);
31-
impl_dimadd_const_out_const!(0, 1);
32-
impl_dimadd_const_out_const!(0, 2);
33-
impl_dimadd_const_out_const!(0, 3);
34-
impl_dimadd_const_out_const!(0, 4);
35-
impl_dimadd_const_out_const!(0, 5);
36-
impl_dimadd_const_out_const!(0, 6);
37-
impl_dimadd_const_out_dyn!(0, IxDyn);
30+
impl<D: Dimension> DimAdd<D> for Ix0 {
31+
type Out = D;
32+
}
3833

3934
impl_dimadd_const_out_const!(1, 0);
4035
impl_dimadd_const_out_const!(1, 1);

0 commit comments

Comments
 (0)