We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7895675 commit 37c985cCopy full SHA for 37c985c
1 file changed
cfgrammar/src/lib/header.rs
@@ -78,7 +78,8 @@ impl fmt::Display for HeaderErrorKind {
78
}
79
80
impl<T> HeaderError<T> {
81
- fn spanskind(&self) -> SpansKind {
+ /// Returns the [SpansKind] associated with this error.
82
+ pub fn spanskind(&self) -> SpansKind {
83
match self.kind {
84
HeaderErrorKind::DuplicateEntry => SpansKind::DuplicationError,
85
_ => SpansKind::Error,
0 commit comments