@@ -93,7 +93,7 @@ impl Errno {
93
93
desc ( self )
94
94
}
95
95
96
- pub fn from_i32 ( err : i32 ) -> Errno {
96
+ pub const fn from_i32 ( err : i32 ) -> Errno {
97
97
from_i32 ( err)
98
98
}
99
99
@@ -928,7 +928,7 @@ mod consts {
928
928
pub const ENOTSUP : Errno = Errno :: EOPNOTSUPP ;
929
929
}
930
930
931
- pub fn from_i32 ( e : i32 ) -> Errno {
931
+ pub const fn from_i32 ( e : i32 ) -> Errno {
932
932
use self :: Errno :: * ;
933
933
934
934
match e {
@@ -1207,7 +1207,7 @@ mod consts {
1207
1207
pub const EDEADLOCK : Errno = Errno :: EDEADLK ;
1208
1208
}
1209
1209
1210
- pub fn from_i32 ( e : i32 ) -> Errno {
1210
+ pub const fn from_i32 ( e : i32 ) -> Errno {
1211
1211
use self :: Errno :: * ;
1212
1212
1213
1213
match e {
@@ -1455,7 +1455,7 @@ mod consts {
1455
1455
pub const EOPNOTSUPP : Errno = Errno :: ENOTSUP ;
1456
1456
}
1457
1457
1458
- pub fn from_i32 ( e : i32 ) -> Errno {
1458
+ pub const fn from_i32 ( e : i32 ) -> Errno {
1459
1459
use self :: Errno :: * ;
1460
1460
1461
1461
match e {
@@ -1692,7 +1692,7 @@ mod consts {
1692
1692
pub const EOPNOTSUPP : Errno = Errno :: ENOTSUP ;
1693
1693
}
1694
1694
1695
- pub fn from_i32 ( e : i32 ) -> Errno {
1695
+ pub const fn from_i32 ( e : i32 ) -> Errno {
1696
1696
use self :: Errno :: * ;
1697
1697
1698
1698
match e {
@@ -1916,7 +1916,7 @@ mod consts {
1916
1916
pub const EWOULDBLOCK : Errno = Errno :: EAGAIN ;
1917
1917
}
1918
1918
1919
- pub fn from_i32 ( e : i32 ) -> Errno {
1919
+ pub const fn from_i32 ( e : i32 ) -> Errno {
1920
1920
use self :: Errno :: * ;
1921
1921
1922
1922
match e {
@@ -2141,7 +2141,7 @@ mod consts {
2141
2141
pub const EWOULDBLOCK : Errno = Errno :: EAGAIN ;
2142
2142
}
2143
2143
2144
- pub fn from_i32 ( e : i32 ) -> Errno {
2144
+ pub const fn from_i32 ( e : i32 ) -> Errno {
2145
2145
use self :: Errno :: * ;
2146
2146
2147
2147
match e {
@@ -2350,7 +2350,7 @@ mod consts {
2350
2350
pub const EWOULDBLOCK : Errno = Errno :: EAGAIN ;
2351
2351
}
2352
2352
2353
- pub fn from_i32 ( e : i32 ) -> Errno {
2353
+ pub const fn from_i32 ( e : i32 ) -> Errno {
2354
2354
use self :: Errno :: * ;
2355
2355
2356
2356
match e {
@@ -2590,7 +2590,7 @@ mod consts {
2590
2590
pub const EWOULDBLOCK : Errno = Errno :: EAGAIN ;
2591
2591
}
2592
2592
2593
- pub fn from_i32 ( e : i32 ) -> Errno {
2593
+ pub const fn from_i32 ( e : i32 ) -> Errno {
2594
2594
use self :: Errno :: * ;
2595
2595
2596
2596
match e {
0 commit comments