Skip to content

Commit 8b3b36b

Browse files
committed
fix
1 parent 4ddc85b commit 8b3b36b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl Error {
8181
}
8282

8383
/// Creates a new instance of an `Error` from a particular internal error code.
84-
const fn new_internal(n: u16) -> Error {
84+
pub(crate) const fn new_internal(n: u16) -> Error {
8585
// SAFETY: code > 0 as INTERNAL_START > 0 and adding n won't overflow a u32.
8686
let code = Error::INTERNAL_START + (n as u32);
8787
Error(unsafe { NonZeroU32::new_unchecked(code) })

0 commit comments

Comments
 (0)