1
Fork 0

Version bump

This commit is contained in:
Oliver Schneider 2018-04-19 08:30:07 +02:00
parent 475959d905
commit c5b39a5917
No known key found for this signature in database
GPG key ID: A69F8D225B3AD7D9
6 changed files with 15 additions and 9 deletions

View file

@ -129,8 +129,8 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
}
}
fn str_span(base: Span, c: regex_syntax::ast::Span, offset: usize) -> Span {
let offset = offset as u32;
fn str_span(base: Span, c: regex_syntax::ast::Span, offset: u16) -> Span {
let offset = u32::from(offset);
let end = base.lo() + BytePos(c.end.offset as u32 + offset);
let start = base.lo() + BytePos(c.start.offset as u32 + offset);
assert!(start <= end);