Use a char pattern here for clippy's sake

This commit is contained in:
David Wendt 2020-06-10 18:58:30 -04:00
parent 1966ec5cb1
commit 1f6d6018dc
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ impl<'a, 'gc> LayoutContext<'a, 'gc> {
span: &TextSpan,
) {
if self.current_line_span.align == swf::TextAlign::Justify {
for word in text.split(" ") {
for word in text.split(' ') {
let word_start = word.as_ptr() as usize - text.as_ptr() as usize;
let word_end = min(word_start + word.len() + 1, text.len());