Skip to content

Commit 28673cf

Browse files
shulaodaytmimi
andauthored
Update src/lib.rs
Co-authored-by: Yacin Tmimi <yacintmimi@gmail.com>
1 parent a3f8a82 commit 28673cf

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,11 @@ pub enum ErrorKind {
112112
"line formatted, but exceeded maximum width \
113113
(maximum: {1} (see `max_width` option), found: {0})"
114114
)]
115-
LineOverflow(usize, usize, usize),
115+
LineOverflow {
116+
total_line_width: usize,
117+
max_width: usize,
118+
overflow_start_byte: usize
119+
}
116120
/// Line ends in whitespace.
117121
#[error("left behind trailing whitespace")]
118122
TrailingWhitespace,

0 commit comments

Comments
 (0)