aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/text.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/text.rs')
-rw-r--r--components/layout/text.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout/text.rs b/components/layout/text.rs
index fdac2dfa658..a61393b5d20 100644
--- a/components/layout/text.rs
+++ b/components/layout/text.rs
@@ -400,7 +400,7 @@ fn split_first_fragment_at_newline_if_necessary(fragments: &mut LinkedList<Fragm
string_before =
unscanned_text_fragment_info.text[..(position + 1)].to_owned();
unscanned_text_fragment_info.text =
- unscanned_text_fragment_info.text[(position + 1)..].to_owned().into_boxed_slice();
+ unscanned_text_fragment_info.text[(position + 1)..].to_owned().into_boxed_str();
}
first_fragment.transform(first_fragment.border_box.size,
SpecificFragmentInfo::UnscannedText(