diff --git a/impl/src/fmt.rs b/impl/src/fmt.rs index 7d07d55..3d1394c 100644 --- a/impl/src/fmt.rs +++ b/impl/src/fmt.rs @@ -184,7 +184,11 @@ fn fallback_explicit_named_args(input: ParseStream) -> Result { }; while !input.is_empty() { - if input.peek(Token![,]) && input.peek2(Ident::peek_any) && input.peek3(Token![=]) { + if input.peek(Token![,]) + && input.peek2(Ident::peek_any) + && input.peek3(Token![=]) + && !input.peek3(Token![==]) + { input.parse::()?; let ident = input.call(Ident::parse_any)?; input.parse::()?;