diff --git a/serde_derive/src/internals/ast.rs b/serde_derive/src/internals/ast.rs index ca3dd33ad..b654f7749 100644 --- a/serde_derive/src/internals/ast.rs +++ b/serde_derive/src/internals/ast.rs @@ -156,9 +156,9 @@ fn enum_from_ast<'a>( } }).inspect(|variant| { if !variant.attrs.untagged() && seen_untagged { - cx.error_spanned_by(&variant.ident, "all variants with the #[serde(untagged)] attribute must be placed at the end of the enum") + cx.error_spanned_by(&variant.ident, "all variants with the #[serde(untagged)] attribute must be placed at the end of the enum"); } - seen_untagged = variant.attrs.untagged() + seen_untagged = variant.attrs.untagged(); }).collect() }