summaryrefslogtreecommitdiff
path: root/subplotlib-derive
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2023-04-10 11:41:59 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2023-04-10 11:41:59 +0100
commit321eaa952ebd9c445745ea811f54598baf29e74e (patch)
treef636fb4608768ba7af49c544374b8c87011b21ad /subplotlib-derive
parentfdd45ddee7f00aa6ca8ced1ba9ec56746b2f19e1 (diff)
downloadsubplot-321eaa952ebd9c445745ea811f54598baf29e74e.tar.gz
(chore): Update to syn 2 from syn 1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'subplotlib-derive')
-rw-r--r--subplotlib-derive/Cargo.toml2
-rw-r--r--subplotlib-derive/src/lib.rs6
2 files changed, 4 insertions, 4 deletions
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