Skip to content

Commit

Permalink
fix: export error module
Browse files Browse the repository at this point in the history
  • Loading branch information
liuq19 committed Dec 12, 2024
1 parent fe0d722 commit d53a6fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ impl ser::Error for Error {

// TODO: remove me in 0.4 version.
#[cold]
pub fn make_error(mut msg: String) -> Error {
pub(crate) fn make_error(mut msg: String) -> Error {
let (line, column) = parse_line_col(&mut msg).unwrap_or((0, 0));
Error {
err: Box::new(ErrorImpl {
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#![doc(test(attr(warn(unused))))]

mod config;
mod error;
pub mod error;
mod index;
mod input;
mod parser;
Expand Down

0 comments on commit d53a6fe

Please sign in to comment.