File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ pub struct Dim<I: ?Sized> {
4242
4343impl < I > Dim < I > {
4444 /// Private constructor and accessors for Dim
45- pub ( crate ) fn new ( index : I ) -> Dim < I > {
45+ pub ( crate ) const fn new ( index : I ) -> Dim < I > {
4646 Dim { index }
4747 }
4848 #[ inline( always) ]
Original file line number Diff line number Diff line change @@ -1445,7 +1445,7 @@ pub struct RawViewRepr<A> {
14451445
14461446impl < A > RawViewRepr < A > {
14471447 #[ inline( always) ]
1448- fn new ( ) -> Self {
1448+ const fn new ( ) -> Self {
14491449 RawViewRepr { ptr : PhantomData }
14501450 }
14511451}
@@ -1462,7 +1462,7 @@ pub struct ViewRepr<A> {
14621462
14631463impl < A > ViewRepr < A > {
14641464 #[ inline( always) ]
1465- fn new ( ) -> Self {
1465+ const fn new ( ) -> Self {
14661466 ViewRepr { life : PhantomData }
14671467 }
14681468}
You can’t perform that action at this time.
0 commit comments