Reduce cbindgen warning from errno.h
This commit is contained in:
@@ -178,7 +178,7 @@ pub const EOWNERDEAD: c_int = 130; /* Owner died */
|
||||
pub const ENOTRECOVERABLE: c_int = 131; /* State not recoverable */
|
||||
|
||||
/// String representations for the respective `errno` values.
|
||||
pub const STR_ERROR: [&str; 132] = [
|
||||
pub(crate) const STR_ERROR: [&str; 132] = [
|
||||
"Success",
|
||||
"Operation not permitted",
|
||||
"No such file or directory",
|
||||
@@ -314,7 +314,7 @@ pub const STR_ERROR: [&str; 132] = [
|
||||
];
|
||||
|
||||
/// Longest error message length
|
||||
pub const STRERROR_MAX: usize = {
|
||||
pub(crate) const STRERROR_MAX: usize = {
|
||||
// Number of digits of the max value of this platform's c_int
|
||||
let digits = {
|
||||
let mut len = 0;
|
||||
|
||||
Reference in New Issue
Block a user