Skip to content

Commit 0f89a58

Browse files
committed
Fix error serialization
1 parent e7af5d5 commit 0f89a58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl ErrorLocation {
2929
}
3030

3131
#[derive(Debug, PartialEq, Serialize)]
32-
#[serde(tag = "type")]
32+
#[serde(tag = "type", content = "value")]
3333
pub enum ParserError<'i> {
3434
/// An unexpected token was encountered.
3535
UnexpectedToken(#[serde(skip)] Token<'i>),
@@ -105,7 +105,7 @@ impl<'i> ParserError<'i> {
105105
}
106106

107107
#[derive(Debug, PartialEq, Serialize)]
108-
#[serde(tag = "type")]
108+
#[serde(tag = "type", content = "value")]
109109
pub enum SelectorError<'i> {
110110
NoQualifiedNameInAttributeSelector(#[serde(skip)] Token<'i>),
111111
EmptySelector,

0 commit comments

Comments
 (0)