We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ddc85b commit 8b3b36bCopy full SHA for 8b3b36b
1 file changed
src/error.rs
@@ -81,7 +81,7 @@ impl Error {
81
}
82
83
/// Creates a new instance of an `Error` from a particular internal error code.
84
- const fn new_internal(n: u16) -> Error {
+ pub(crate) const fn new_internal(n: u16) -> Error {
85
// SAFETY: code > 0 as INTERNAL_START > 0 and adding n won't overflow a u32.
86
let code = Error::INTERNAL_START + (n as u32);
87
Error(unsafe { NonZeroU32::new_unchecked(code) })
0 commit comments