Skip to content

Commit

Permalink
Combine DimAdd impls for Ix0
Browse files Browse the repository at this point in the history
  • Loading branch information
jturner314 committed Feb 7, 2021
1 parent da27047 commit 6f441c8
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/dimension/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,9 @@ macro_rules! impl_dimadd_const_out_dyn {
};
}

impl_dimadd_const_out_const!(0, 0);
impl_dimadd_const_out_const!(0, 1);
impl_dimadd_const_out_const!(0, 2);
impl_dimadd_const_out_const!(0, 3);
impl_dimadd_const_out_const!(0, 4);
impl_dimadd_const_out_const!(0, 5);
impl_dimadd_const_out_const!(0, 6);
impl_dimadd_const_out_dyn!(0, IxDyn);
impl<D: Dimension> DimAdd<D> for Ix0 {
type Out = D;
}

impl_dimadd_const_out_const!(1, 0);
impl_dimadd_const_out_const!(1, 1);
Expand Down

0 comments on commit 6f441c8

Please sign in to comment.