Skip to content

Commit 4ddc85b

Browse files
committed
Fix visibility
1 parent 8a0db2a commit 4ddc85b

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/backends/apple_other.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ pub fn fill_inner(dest: &mut [MaybeUninit<u8>]) -> Result<(), Error> {
1616

1717
impl Error {
1818
/// Call to `CCRandomGenerateBytes` failed.
19-
const IOS_RANDOM_GEN: Error = Self::new_internal(10);
19+
pub(crate) const IOS_RANDOM_GEN: Error = Self::new_internal(10);
2020
}

src/backends/rdrand.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ pub fn fill_inner(dest: &mut [MaybeUninit<u8>]) -> Result<(), Error> {
173173

174174
impl Error {
175175
/// RDRAND instruction failed due to a hardware issue.
176-
const FAILED_RDRAND: Error = Self::new_internal(10);
176+
pub(crate) const FAILED_RDRAND: Error = Self::new_internal(10);
177177
/// RDRAND instruction unsupported on this target.
178-
const NO_RDRAND: Error = Self::new_internal(11);
178+
pub(crate) const NO_RDRAND: Error = Self::new_internal(11);
179179
}

src/backends/rndr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ pub fn fill_inner(dest: &mut [MaybeUninit<u8>]) -> Result<(), Error> {
135135

136136
impl Error {
137137
/// RNDR register read failed due to a hardware issue.
138-
const RNDR_FAILURE: Error = Self::new_internal(10);
138+
pub(crate) const RNDR_FAILURE: Error = Self::new_internal(10);
139139
/// RNDR register is not supported on this target.
140-
const RNDR_NOT_AVAILABLE: Error = Self::new_internal(11);
140+
pub(crate) const RNDR_NOT_AVAILABLE: Error = Self::new_internal(11);
141141
}

src/backends/vxworks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ pub fn fill_inner(dest: &mut [MaybeUninit<u8>]) -> Result<(), Error> {
4545

4646
impl Error {
4747
/// On VxWorks, call to `randSecure` failed (random number generator is not yet initialized).
48-
const VXWORKS_RAND_SECURE: Error = Self::new_internal(10);
48+
pub(crate) const VXWORKS_RAND_SECURE: Error = Self::new_internal(10);
4949
}

src/backends/wasm_js.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,5 @@ extern "C" {
6868

6969
impl Error {
7070
/// The environment does not support the Web Crypto API.
71-
const WEB_CRYPTO: Error = Self::new_internal(10);
71+
pub(crate) const WEB_CRYPTO: Error = Self::new_internal(10);
7272
}

src/backends/windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ pub fn fill_inner(dest: &mut [MaybeUninit<u8>]) -> Result<(), Error> {
4343

4444
impl Error {
4545
/// Calling Windows ProcessPrng failed.
46-
const WINDOWS_PROCESS_PRNG: Error = Self::new_internal(10);
46+
pub(crate) const WINDOWS_PROCESS_PRNG: Error = Self::new_internal(10);
4747
}

src/backends/windows7.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ pub fn fill_inner(dest: &mut [MaybeUninit<u8>]) -> Result<(), Error> {
4040

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

0 commit comments

Comments
 (0)