fix: Parse away any additional serde tokens that we do not care about
This commit is contained in:
@@ -313,6 +313,12 @@ fn parse_fields(
|
||||
}
|
||||
} else if meta.path.is_ident("flatten") {
|
||||
flatten = true;
|
||||
} else {
|
||||
// Parse away any additional token that we don't care about
|
||||
if meta.input.peek(Token![=]) {
|
||||
meta.input.parse::<Token![=]>()?;
|
||||
meta.input.parse::<LitStr>()?;
|
||||
}
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user