Update synstructure to reflect upstream patch
Ximin Luo
4 years ago
28 | 28 |
if bound.path.leading_colon.is_none() {
|
29 | 29 |
if let Some(ref seg) = bound.path.segments.first() {
|
30 | 30 |
- let seg = seg.value();
|
31 | |
+ let seg = *seg;
|
|
31 |
+ let seg = &seg.ident;
|
32 | 32 |
extern_crate = quote! { extern crate #seg; };
|
33 | 33 |
}
|
34 | 34 |
}
|
0 | |
update-syn.patch
|
1 | 0 |
relax-dependencies.patch
|
src/synstructure/debian/patches/update-syn.patch
less
more
0 | |
--- a/Cargo.toml
|
1 | |
+++ b/Cargo.toml
|
2 | |
@@ -22,13 +22,13 @@
|
3 | |
license = "MIT"
|
4 | |
repository = "https://github.com/mystor/synstructure"
|
5 | |
[dependencies.proc-macro2]
|
6 | |
-version = "0.4"
|
7 | |
+version = "1"
|
8 | |
|
9 | |
[dependencies.quote]
|
10 | |
-version = "0.6"
|
11 | |
+version = "1"
|
12 | |
|
13 | |
[dependencies.syn]
|
14 | |
-version = "0.15"
|
15 | |
+version = "1"
|
16 | |
features = ["visit", "extra-traits"]
|
17 | |
|
18 | |
[dependencies.unicode-xid]
|
19 | |
--- a/src/lib.rs
|
20 | |
+++ b/src/lib.rs
|
21 | |
@@ -2059,7 +2059,7 @@
|
22 | |
let mut extern_crate = quote!();
|
23 | |
if bound.path.leading_colon.is_none() {
|
24 | |
if let Some(ref seg) = bound.path.segments.first() {
|
25 | |
- let seg = seg.value();
|
26 | |
+ let seg = &seg.ident;
|
27 | |
extern_crate = quote! { extern crate #seg; };
|
28 | |
}
|
29 | |
}
|