Skip to content

Commit

Permalink
Fix visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Dec 9, 2024
1 parent 8a0db2a commit 4ddc85b
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/backends/apple_other.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ pub fn fill_inner(dest: &mut [MaybeUninit<u8>]) -> Result<(), Error> {

impl Error {
/// Call to `CCRandomGenerateBytes` failed.
const IOS_RANDOM_GEN: Error = Self::new_internal(10);
pub(crate) const IOS_RANDOM_GEN: Error = Self::new_internal(10);
}
4 changes: 2 additions & 2 deletions src/backends/rdrand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ pub fn fill_inner(dest: &mut [MaybeUninit<u8>]) -> Result<(), Error> {

impl Error {
/// RDRAND instruction failed due to a hardware issue.
const FAILED_RDRAND: Error = Self::new_internal(10);
pub(crate) const FAILED_RDRAND: Error = Self::new_internal(10);
/// RDRAND instruction unsupported on this target.
const NO_RDRAND: Error = Self::new_internal(11);
pub(crate) const NO_RDRAND: Error = Self::new_internal(11);
}
4 changes: 2 additions & 2 deletions src/backends/rndr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ pub fn fill_inner(dest: &mut [MaybeUninit<u8>]) -> Result<(), Error> {

impl Error {
/// RNDR register read failed due to a hardware issue.
const RNDR_FAILURE: Error = Self::new_internal(10);
pub(crate) const RNDR_FAILURE: Error = Self::new_internal(10);
/// RNDR register is not supported on this target.
const RNDR_NOT_AVAILABLE: Error = Self::new_internal(11);
pub(crate) const RNDR_NOT_AVAILABLE: Error = Self::new_internal(11);
}
2 changes: 1 addition & 1 deletion src/backends/vxworks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ pub fn fill_inner(dest: &mut [MaybeUninit<u8>]) -> Result<(), Error> {

impl Error {
/// On VxWorks, call to `randSecure` failed (random number generator is not yet initialized).
const VXWORKS_RAND_SECURE: Error = Self::new_internal(10);
pub(crate) const VXWORKS_RAND_SECURE: Error = Self::new_internal(10);
}
2 changes: 1 addition & 1 deletion src/backends/wasm_js.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ extern "C" {

impl Error {
/// The environment does not support the Web Crypto API.
const WEB_CRYPTO: Error = Self::new_internal(10);
pub(crate) const WEB_CRYPTO: Error = Self::new_internal(10);
}
2 changes: 1 addition & 1 deletion src/backends/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ pub fn fill_inner(dest: &mut [MaybeUninit<u8>]) -> Result<(), Error> {

impl Error {
/// Calling Windows ProcessPrng failed.
const WINDOWS_PROCESS_PRNG: Error = Self::new_internal(10);
pub(crate) const WINDOWS_PROCESS_PRNG: Error = Self::new_internal(10);
}
2 changes: 1 addition & 1 deletion src/backends/windows7.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ pub fn fill_inner(dest: &mut [MaybeUninit<u8>]) -> Result<(), Error> {

impl Error {
/// Call to Windows [`RtlGenRandom`](https://docs.microsoft.com/en-us/windows/win32/api/ntsecapi/nf-ntsecapi-rtlgenrandom) failed.
const WINDOWS_RTL_GEN_RANDOM: Error = Self::new_internal(10);
pub(crate) const WINDOWS_RTL_GEN_RANDOM: Error = Self::new_internal(10);
}

0 comments on commit 4ddc85b

Please sign in to comment.