diff options
Diffstat (limited to 'src/components/main/layout/text.rs')
-rw-r--r-- | src/components/main/layout/text.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/main/layout/text.rs b/src/components/main/layout/text.rs index c70aa8c0cb1..83dfb9d1b78 100644 --- a/src/components/main/layout/text.rs +++ b/src/components/main/layout/text.rs @@ -31,7 +31,7 @@ fn can_coalesce_text_nodes(boxes: &[Box], left_i: uint, right_i: uint) -> bool { /// A stack-allocated object for scanning an inline flow into `TextRun`-containing `TextBox`es. pub struct TextRunScanner { - pub clump: Range, + pub clump: Range<uint>, } impl TextRunScanner { @@ -210,7 +210,7 @@ impl TextRunScanner { // Next, concatenate all of the transformed strings together, saving the new // character indices. let mut run_str: ~str = "".to_owned(); - let mut new_ranges: Vec<Range> = vec!(); + let mut new_ranges: Vec<Range<uint>> = vec!(); let mut char_total = 0; for i in range(0, transformed_strs.len()) { let added_chars = transformed_strs.get(i).char_len(); |