From cef241546e679190472b1ea7e5904cf8102f7f4b Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Wed, 17 Sep 2025 00:01:59 +0200 Subject: [PATCH] fix: Parse away any additional serde tokens that we do not care about --- lua_typed_macro/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua_typed_macro/src/lib.rs b/lua_typed_macro/src/lib.rs index 2a6bc7c..ad86d69 100644 --- a/lua_typed_macro/src/lib.rs +++ b/lua_typed_macro/src/lib.rs @@ -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::()?; + meta.input.parse::()?; + } } Ok(())