We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6034da4 commit ea429b4Copy full SHA for ea429b4
2 files changed
src/dimension/dim.rs
@@ -42,7 +42,7 @@ pub struct Dim<I: ?Sized> {
42
43
impl<I> Dim<I> {
44
/// Private constructor and accessors for Dim
45
- pub(crate) fn new(index: I) -> Dim<I> {
+ pub(crate) const fn new(index: I) -> Dim<I> {
46
Dim { index }
47
}
48
#[inline(always)]
src/lib.rs
@@ -1450,7 +1450,7 @@ pub struct RawViewRepr<A> {
1450
1451
impl<A> RawViewRepr<A> {
1452
1453
- fn new() -> Self {
+ const fn new() -> Self {
1454
RawViewRepr { ptr: PhantomData }
1455
1456
@@ -1467,7 +1467,7 @@ pub struct ViewRepr<A> {
1467
1468
impl<A> ViewRepr<A> {
1469
1470
1471
ViewRepr { life: PhantomData }
1472
1473
0 commit comments