We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7711764 commit 9ab4aefCopy full SHA for 9ab4aef
src/attr.rs
@@ -721,7 +721,7 @@ pub(crate) mod parsing {
721
pub(crate) fn parse_meta_after_path(path: Path, input: ParseStream) -> Result<Meta> {
722
if input.peek(token::Paren) || input.peek(token::Bracket) || input.peek(token::Brace) {
723
parse_meta_list_after_path(path, input).map(Meta::List)
724
- } else if input.peek(Token![=]) {
+ } else if input.peek(Token![=]) && !input.peek(Token![==]) && !input.peek(Token![=>]) {
725
parse_meta_name_value_after_path(path, input).map(Meta::NameValue)
726
} else {
727
Ok(Meta::Path(path))
0 commit comments