Fix cfg(not(procmacro2_semver_exempt))

This commit is contained in:
강동윤 2019-01-19 09:31:03 +09:00
parent a26cc61a69
commit cb12e13a0b
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "swc_ecma_parser_macros"
version = "0.2.0"
version = "0.2.1"
authors = ["강동윤 <kdy1@outlook.kr>"]
license = "Apache-2.0/MIT"
repository = "https://github.com/swc-project/swc.git"

View File

@ -33,7 +33,7 @@ fn get_joinned_span(t: &ToTokens) -> Span {
#[cfg(not(procmacro2_semver_exempt))]
fn get_joinned_span(t: &ToTokens) -> Span {
let tts: TokenStream = t.dump().into();
let (mut first, last) = (None, None);
let mut first = None;
for tt in tts {
match first {
None => first = Some(tt.span()),