1
0
mirror of https://github.com/bspeice/qadapt synced 2024-11-22 05:48:13 -05:00

More edition fixing

This commit is contained in:
Bradlee Speice 2018-12-06 22:12:45 -05:00
parent de2b6700ae
commit f4f33dabb7

View File

@ -111,7 +111,7 @@ fn escape_return(ts: TokenStream) -> TokenStream {
let mut tt_iter = ts.into_iter(); let mut tt_iter = ts.into_iter();
while let Some(tt) = tt_iter.next() { while let Some(tt) = tt_iter.next() {
let mut tokens = match tt { let tokens = match tt {
TokenTree::Group(ref g) if g.delimiter() == Delimiter::Brace && !in_closure => { TokenTree::Group(ref g) if g.delimiter() == Delimiter::Brace && !in_closure => {
vec![group!(Delimiter::Brace, escape_return(g.stream()))] vec![group!(Delimiter::Brace, escape_return(g.stream()))]
} }