diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2023-04-10 11:41:59 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2023-04-10 11:41:59 +0100 |
commit | 321eaa952ebd9c445745ea811f54598baf29e74e (patch) | |
tree | f636fb4608768ba7af49c544374b8c87011b21ad | |
parent | fdd45ddee7f00aa6ca8ced1ba9ec56746b2f19e1 (diff) | |
download | subplot-321eaa952ebd9c445745ea811f54598baf29e74e.tar.gz |
(chore): Update to syn 2 from syn 1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
-rw-r--r-- | Cargo.lock | 2 | ||||
-rw-r--r-- | subplotlib-derive/Cargo.toml | 2 | ||||
-rw-r--r-- | subplotlib-derive/src/lib.rs | 6 |
3 files changed, 5 insertions, 5 deletions
@@ -1173,7 +1173,7 @@ dependencies = [ "fehler", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.13", ] [[package]] diff --git a/subplotlib-derive/Cargo.toml b/subplotlib-derive/Cargo.toml index 4d56491..eaa079e 100644 --- a/subplotlib-derive/Cargo.toml +++ b/subplotlib-derive/Cargo.toml @@ -18,7 +18,7 @@ rust-version = "1.63" proc-macro = true [dependencies] -syn = { version = "1", features = ["full"] } +syn = { version = "2", features = ["full"] } quote = "1" proc-macro2 = "1" fehler = "1" diff --git a/subplotlib-derive/src/lib.rs b/subplotlib-derive/src/lib.rs index 584d730..83e4adf 100644 --- a/subplotlib-derive/src/lib.rs +++ b/subplotlib-derive/src/lib.rs @@ -209,19 +209,19 @@ fn process_step(mut input: ItemFn) -> proc_macro2::TokenStream { let contexts: Vec<Type> = input .attrs .iter() - .filter(|attr| attr.path.is_ident("context")) + .filter(|attr| attr.path().is_ident("context")) .map(|attr| { let ty: Type = attr.parse_args()?; Ok(ty) }) .collect::<Result<_, Error>>()?; - input.attrs.retain(|f| !f.path.is_ident("context")); + input.attrs.retain(|f| !f.path().is_ident("context")); let docs: Vec<_> = input .attrs .iter() - .filter(|attr| attr.path.is_ident("doc")) + .filter(|attr| attr.path().is_ident("doc")) .collect(); let fields = input |