Skip to content

Commit

Permalink
Specify the type of Iterator::sum now that references implement AddAs…
Browse files Browse the repository at this point in the history
…sign

Closes shepmaster#92
  • Loading branch information
shepmaster authored and matprec committed Oct 7, 2017
1 parent 1ba3e7a commit 8c4d2c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tokenizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ fn ident_raw<'s>(_pm: &mut Master<'s>, pt: Point<'s>) -> Progress<'s, (&'s str,
if UnicodeXID::is_xid_start(c) || c == '_' {
idx += c.len_utf8();

idx += ci.take_while(|&c| UnicodeXID::is_xid_continue(c)).map(|c| c.len_utf8()).sum();
idx += ci.take_while(|&c| UnicodeXID::is_xid_continue(c)).map(|c| c.len_utf8()).sum::<usize>();
}
}

Expand Down

0 comments on commit 8c4d2c0

Please sign in to comment.