File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ impl Error {
64
64
///
65
65
/// When `errno` given is invalid, a warning will be printed
66
66
/// and the `errno` will be converted to `EINVAL`.
67
- pub fn from_kernel_errno ( errno : c_types:: c_int ) -> Error {
67
+ pub ( crate ) fn from_kernel_errno ( errno : c_types:: c_int ) -> Error {
68
68
if errno < -( bindings:: MAX_ERRNO as i32 ) || errno >= 0 {
69
69
crate :: pr_warn!(
70
70
"Creating Error with an invalid errno {}, convert \
@@ -84,7 +84,7 @@ impl Error {
84
84
/// # Safety
85
85
///
86
86
/// `errno` must be within error code range (i.e. `>= -MAX_ERRNO && < 0`).
87
- pub unsafe fn from_kernel_errno_unchecked ( errno : c_types:: c_int ) -> Error {
87
+ pub ( crate ) unsafe fn from_kernel_errno_unchecked ( errno : c_types:: c_int ) -> Error {
88
88
// INVARIANT: the contract ensures the type invariant
89
89
// will hold.
90
90
Error ( errno)
You can’t perform that action at this time.
0 commit comments