Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to syn 2 #1862

Merged
merged 5 commits into from
Mar 18, 2023
Merged

Update to syn 2 #1862

merged 5 commits into from
Mar 18, 2023

Conversation

davidpdrsn
Copy link
Member

🚀

@@ -23,6 +23,8 @@ skip-tree = [
{ name = "windows-sys" },
# old version pulled in by rustls via ring
{ name = "spin" },
# lots still pulls in syn 1.x
{ name = "syn" },
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to remove duplicate syn versions but still lots of crates that need to be updated. I'm gonna submit some patches but don't it should block us from updating.

@davidpdrsn davidpdrsn requested a review from jplatte March 18, 2023 16:20
@davidpdrsn davidpdrsn enabled auto-merge (squash) March 18, 2023 16:21
@davidpdrsn davidpdrsn merged commit 8e1eb89 into main Mar 18, 2023
@davidpdrsn davidpdrsn deleted the david/syn2 branch March 18, 2023 19:23
@@ -62,7 +62,7 @@ where
{
attrs
.iter()
.filter(|attr| attr.path.is_ident(ident))
.filter(|attr| attr.meta.path().is_ident(ident))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having just upgraded another project to syn 2, I realized you used a more verbose solution than necessary here. Attribute also has a path method, so this can be attr.path().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants