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> {
42
42
43
43
impl < I > Dim < I > {
44
44
/// 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 > {
46
46
Dim { index }
47
47
}
48
48
#[ inline( always) ]
Original file line number Diff line number Diff line change @@ -1450,7 +1450,7 @@ pub struct RawViewRepr<A> {
1450
1450
1451
1451
impl < A > RawViewRepr < A > {
1452
1452
#[ inline( always) ]
1453
- fn new ( ) -> Self {
1453
+ const fn new ( ) -> Self {
1454
1454
RawViewRepr { ptr : PhantomData }
1455
1455
}
1456
1456
}
@@ -1467,7 +1467,7 @@ pub struct ViewRepr<A> {
1467
1467
1468
1468
impl < A > ViewRepr < A > {
1469
1469
#[ inline( always) ]
1470
- fn new ( ) -> Self {
1470
+ const fn new ( ) -> Self {
1471
1471
ViewRepr { life : PhantomData }
1472
1472
}
1473
1473
}
You can’t perform that action at this time.
0 commit comments