aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/construct.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2020-02-10 16:50:40 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2020-02-12 02:43:23 +0100
commite227715aee48603755ae19f656ff0f85b1eb62bb (patch)
treec7274b457cf9c80d5fad6ea900e30340230be659 /components/layout/construct.rs
parent18cda1567a6d725b9caba776b1c49c272a93e391 (diff)
downloadservo-e227715aee48603755ae19f656ff0f85b1eb62bb.tar.gz
servo-e227715aee48603755ae19f656ff0f85b1eb62bb.zip
style: Miscellaneous Servo build fixes.
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r--components/layout/construct.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs
index 5c9ff1256dd..aabb2e69b67 100644
--- a/components/layout/construct.rs
+++ b/components/layout/construct.rs
@@ -840,7 +840,10 @@ impl<'a, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode>
match text_content {
TextContent::Text(string) => {
- let info = Box::new(UnscannedTextFragmentInfo::new(string, node.selection()));
+ let info = Box::new(UnscannedTextFragmentInfo::new(
+ string.into(),
+ node.selection(),
+ ));
let specific_fragment_info = SpecificFragmentInfo::UnscannedText(info);
fragments
.fragments
@@ -857,7 +860,8 @@ impl<'a, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode>
for content_item in content_items.into_iter() {
let specific_fragment_info = match content_item {
ContentItem::String(string) => {
- let info = Box::new(UnscannedTextFragmentInfo::new(string, None));
+ let info =
+ Box::new(UnscannedTextFragmentInfo::new(string.into(), None));
SpecificFragmentInfo::UnscannedText(info)
},
content_item => {