aboutsummaryrefslogtreecommitdiff
path: root/patches/syn-2.diff
blob: 46fec696b5296441c82cb39e6dad044df0511608 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
diff --git a/src/dissolve.rs b/src/dissolve.rs
index 69feb0f..d63ffa0 100644
--- a/src/dissolve.rs
+++ b/src/dissolve.rs
@@ -82,7 +82,7 @@ fn dissolve_rename_from(attributes: &[Attribute]) -> Result<Option<Ident>> {
     for attr in attributes {
         if attr.style != AttrStyle::Outer { continue; }
 
-        if attr.path.is_ident("dissolve") {
+        if attr.path().is_ident("dissolve") {
             let rename = attr.parse_args::<Rename>()?;
             current = Some(rename.name);
         }
@@ -112,7 +112,7 @@ impl<'a> NamedStruct<'a> {
             });
 
         let type_tuple = TypeTuple {
-            paren_token: Paren { span: Span::call_site() },
+            paren_token: Default::default(),
             elems: types,
         };
 
diff --git a/src/getters.rs b/src/getters.rs
index 211b646..b37c953 100644
--- a/src/getters.rs
+++ b/src/getters.rs
@@ -60,7 +60,7 @@ fn get_action_from(attributes: &[Attribute]) -> Result<Option<Action>> {
     for attr in attributes {
         if attr.style != AttrStyle::Outer { continue; }
         
-        if attr.path.is_ident("getter") {
+        if attr.path().is_ident("getter") {
             current = Some(attr.parse_args::<Action>()?);
         }
     }