aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--patches/syn-2.patch13
-rw-r--r--src/lib.rs2
2 files changed, 14 insertions, 1 deletions
diff --git a/patches/syn-2.patch b/patches/syn-2.patch
new file mode 100644
index 0000000..226c027
--- /dev/null
+++ b/patches/syn-2.patch
@@ -0,0 +1,13 @@
+diff --git a/src/lib.rs b/src/lib.rs
+index 75732f9..3727bf6 100644
+--- a/src/lib.rs
++++ b/src/lib.rs
+@@ -119,7 +119,7 @@ impl<'a, I: Iterator<Item = &'a syn::Attribute>> From<I> for FieldAttrs {
+ let mut field_attrs = Self::default();
+
+ for attr in iter {
+- if !attr.path.is_ident("merge") {
++ if !attr.path().is_ident("merge") {
+ continue;
+ }
+
diff --git a/src/lib.rs b/src/lib.rs
index 75732f9..3727bf6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -119,7 +119,7 @@ impl<'a, I: Iterator<Item = &'a syn::Attribute>> From<I> for FieldAttrs {
let mut field_attrs = Self::default();
for attr in iter {
- if !attr.path.is_ident("merge") {
+ if !attr.path().is_ident("merge") {
continue;
}