Skip to content

Commit d53a6fe

Browse files
committed
fix: export error module
1 parent fe0d722 commit d53a6fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ impl ser::Error for Error {
442442

443443
// TODO: remove me in 0.4 version.
444444
#[cold]
445-
pub fn make_error(mut msg: String) -> Error {
445+
pub(crate) fn make_error(mut msg: String) -> Error {
446446
let (line, column) = parse_line_col(&mut msg).unwrap_or((0, 0));
447447
Error {
448448
err: Box::new(ErrorImpl {

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#![doc(test(attr(warn(unused))))]
44

55
mod config;
6-
mod error;
6+
pub mod error;
77
mod index;
88
mod input;
99
mod parser;

0 commit comments

Comments
 (0)