fix: Reduce the size of the DocIndex type

This commit is contained in:
Clément Renault 2019-03-04 14:59:58 +01:00
parent aef7d7825f
commit a45cc4b618
No known key found for this signature in database
GPG key ID: 0151CDAB43460DAE
6 changed files with 23 additions and 23 deletions

View file

@ -126,7 +126,7 @@ fn crop_text(
(m.char_index as usize) + (m.char_length as usize) <= start + (context * 2)
})
.map(|match_| {
Match { char_index: match_.char_index - start as u32, ..match_ }
Match { char_index: match_.char_index - start as u16, ..match_ }
})
.collect();