@@ -93,7 +93,7 @@ impl Errno {
9393 desc ( self )
9494 }
9595
96- pub fn from_i32 ( err : i32 ) -> Errno {
96+ pub const fn from_i32 ( err : i32 ) -> Errno {
9797 from_i32 ( err)
9898 }
9999
@@ -928,7 +928,7 @@ mod consts {
928928 pub const ENOTSUP : Errno = Errno :: EOPNOTSUPP ;
929929 }
930930
931- pub fn from_i32 ( e : i32 ) -> Errno {
931+ pub const fn from_i32 ( e : i32 ) -> Errno {
932932 use self :: Errno :: * ;
933933
934934 match e {
@@ -1207,7 +1207,7 @@ mod consts {
12071207 pub const EDEADLOCK : Errno = Errno :: EDEADLK ;
12081208 }
12091209
1210- pub fn from_i32 ( e : i32 ) -> Errno {
1210+ pub const fn from_i32 ( e : i32 ) -> Errno {
12111211 use self :: Errno :: * ;
12121212
12131213 match e {
@@ -1455,7 +1455,7 @@ mod consts {
14551455 pub const EOPNOTSUPP : Errno = Errno :: ENOTSUP ;
14561456 }
14571457
1458- pub fn from_i32 ( e : i32 ) -> Errno {
1458+ pub const fn from_i32 ( e : i32 ) -> Errno {
14591459 use self :: Errno :: * ;
14601460
14611461 match e {
@@ -1692,7 +1692,7 @@ mod consts {
16921692 pub const EOPNOTSUPP : Errno = Errno :: ENOTSUP ;
16931693 }
16941694
1695- pub fn from_i32 ( e : i32 ) -> Errno {
1695+ pub const fn from_i32 ( e : i32 ) -> Errno {
16961696 use self :: Errno :: * ;
16971697
16981698 match e {
@@ -1916,7 +1916,7 @@ mod consts {
19161916 pub const EWOULDBLOCK : Errno = Errno :: EAGAIN ;
19171917 }
19181918
1919- pub fn from_i32 ( e : i32 ) -> Errno {
1919+ pub const fn from_i32 ( e : i32 ) -> Errno {
19201920 use self :: Errno :: * ;
19211921
19221922 match e {
@@ -2141,7 +2141,7 @@ mod consts {
21412141 pub const EWOULDBLOCK : Errno = Errno :: EAGAIN ;
21422142 }
21432143
2144- pub fn from_i32 ( e : i32 ) -> Errno {
2144+ pub const fn from_i32 ( e : i32 ) -> Errno {
21452145 use self :: Errno :: * ;
21462146
21472147 match e {
@@ -2350,7 +2350,7 @@ mod consts {
23502350 pub const EWOULDBLOCK : Errno = Errno :: EAGAIN ;
23512351 }
23522352
2353- pub fn from_i32 ( e : i32 ) -> Errno {
2353+ pub const fn from_i32 ( e : i32 ) -> Errno {
23542354 use self :: Errno :: * ;
23552355
23562356 match e {
@@ -2590,7 +2590,7 @@ mod consts {
25902590 pub const EWOULDBLOCK : Errno = Errno :: EAGAIN ;
25912591 }
25922592
2593- pub fn from_i32 ( e : i32 ) -> Errno {
2593+ pub const fn from_i32 ( e : i32 ) -> Errno {
25942594 use self :: Errno :: * ;
25952595
25962596 match e {
0 commit comments