From 8f97d2298a2db8f4525e1cbb27164985b8537d4a Mon Sep 17 00:00:00 2001 From: Wildan M Date: Thu, 25 Dec 2025 16:50:26 +0700 Subject: [PATCH] Reduce cbindgen warning from errno.h --- src/header/errno/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/header/errno/mod.rs b/src/header/errno/mod.rs index 2133702d3c..71901a0672 100644 --- a/src/header/errno/mod.rs +++ b/src/header/errno/mod.rs @@ -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;