Skip to content

Commit 6bdb094

Browse files
authored
Merge pull request #30 from LukasKalbertodt/update-syn-to-0.15
Update `syn` to 0.15
2 parents 4a28269 + 9425c43 commit 6bdb094

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ nightly = ["proc-macro2/nightly"]
3030
[dependencies]
3131
proc-macro2 = { version = "0.4.6" }
3232
quote = "0.6.3"
33-
syn = { version = "0.14.4", features = ["full", "visit-mut"] }
33+
syn = { version = "0.15", features = ["full", "visit", "visit-mut"] }
3434

3535
[dev-dependencies]
3636
build-plan = "0.1.1"

src/analyze.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use std::collections::HashSet;
33
use proc_macro2::Span as Span2;
44
use syn::{
55
Ident, ItemTrait, Lifetime, Block,
6-
token::Apostrophe,
76
visit::{Visit, visit_item_trait},
87
};
98

@@ -89,7 +88,7 @@ crate fn find_suitable_param_names(trait_def: &ItemTrait) -> (Ident, Lifetime) {
8988
.find(|i| !visitor.lt_names.contains(i))
9089
.unwrap_or_else(|| Ident::new(PROXY_LT_PARAM_NAME, param_span()));
9190
let lt = Lifetime {
92-
apostrophe: Apostrophe::new(param_span()),
91+
apostrophe: param_span(),
9392
ident: lt_name,
9493
};
9594

0 commit comments

Comments
 (0)