From 9fa3e4b889fc4cc3b999014755242f23e1f2a03c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 30 Mar 2023 16:35:10 +1000 Subject: [PATCH] chore(deps): bump syn from 1.0.109 to 2.0.10 (#1499) * chore(deps): bump syn from 1.0.109 to 2.0.10 Bumps [syn](https://github.com/dtolnay/syn) from 1.0.109 to 2.0.10. - [Release notes](https://github.com/dtolnay/syn/releases) - [Commits](https://github.com/dtolnay/syn/compare/1.0.109...2.0.10) --- updated-dependencies: - dependency-name: syn dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * minor fixes to support new syn version --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: James Hodgkinson --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- server/lib-macros/src/entry.rs | 6 +++--- server/testkit-macros/src/entry.rs | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 149d3c251..9e52a121b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2471,7 +2471,7 @@ version = "0.1.0" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.10", ] [[package]] @@ -4366,7 +4366,7 @@ version = "0.1.0" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.10", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 420f775dd..8c4126c66 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -127,7 +127,7 @@ sketching = { path = "./libs/sketching" } smartstring = "^1.0.1" smolset = "^1.3.1" sshkeys = "^0.3.1" -syn = { version = "1.0.109", features = ["full"] } +syn = { version = "2.0.10", features = ["full"] } testkit-macros = { path = "./server/testkit-macros" } tide = "^0.16.0" # Including brotli *very* slow, so don't do that. Including the "default" feature pulls a mime-type list from the internet on build, which isn't used. diff --git a/server/lib-macros/src/entry.rs b/server/lib-macros/src/entry.rs index 1f971cf11..ec2f56057 100644 --- a/server/lib-macros/src/entry.rs +++ b/server/lib-macros/src/entry.rs @@ -14,7 +14,7 @@ pub(crate) fn qs_test(_args: &TokenStream, item: TokenStream, with_init: bool) - Err(e) => return token_stream_with_error(item, e), }; - if let Some(attr) = input.attrs.iter().find(|attr| attr.path.is_ident("test")) { + if let Some(attr) = input.attrs.iter().find(|attr| attr.path().is_ident("test")) { let msg = "second test attribute is supplied"; return token_stream_with_error(item, syn::Error::new_spanned(attr, msg)); }; @@ -104,7 +104,7 @@ pub(crate) fn qs_pair_test(_args: &TokenStream, item: TokenStream, with_init: bo Err(e) => return token_stream_with_error(item, e), }; - if let Some(attr) = input.attrs.iter().find(|attr| attr.path.is_ident("test")) { + if let Some(attr) = input.attrs.iter().find(|attr| attr.path().is_ident("test")) { let msg = "second test attribute is supplied"; return token_stream_with_error(item, syn::Error::new_spanned(attr, msg)); }; @@ -198,7 +198,7 @@ pub(crate) fn idm_test(_args: &TokenStream, item: TokenStream) -> TokenStream { Err(e) => return token_stream_with_error(item, e), }; - if let Some(attr) = input.attrs.iter().find(|attr| attr.path.is_ident("test")) { + if let Some(attr) = input.attrs.iter().find(|attr| attr.path().is_ident("test")) { let msg = "second test attribute is supplied"; return token_stream_with_error(item, syn::Error::new_spanned(attr, msg)); }; diff --git a/server/testkit-macros/src/entry.rs b/server/testkit-macros/src/entry.rs index e6dfb1a86..9b43595b5 100644 --- a/server/testkit-macros/src/entry.rs +++ b/server/testkit-macros/src/entry.rs @@ -75,7 +75,7 @@ pub(crate) fn test(_args: &TokenStream, item: TokenStream) -> TokenStream { Err(e) => return token_stream_with_error(item, e), }; - if let Some(attr) = input.attrs.iter().find(|attr| attr.path.is_ident("test")) { + if let Some(attr) = input.attrs.iter().find(|attr| attr.path().is_ident("test")) { let msg = "second test attribute is supplied"; return token_stream_with_error(item, syn::Error::new_spanned(attr, msg)); };