Skip to content

Commit 37c985c

Browse files
committed
Make spanskind pub
1 parent 7895675 commit 37c985c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cfgrammar/src/lib/header.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ impl fmt::Display for HeaderErrorKind {
7878
}
7979

8080
impl<T> HeaderError<T> {
81-
fn spanskind(&self) -> SpansKind {
81+
/// Returns the [SpansKind] associated with this error.
82+
pub fn spanskind(&self) -> SpansKind {
8283
match self.kind {
8384
HeaderErrorKind::DuplicateEntry => SpansKind::DuplicationError,
8485
_ => SpansKind::Error,

0 commit comments

Comments
 (0)