aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/generated_content.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2017-10-11 23:12:43 +0200
committerSimon Sapin <simon.sapin@exyr.org>2017-10-12 12:10:56 +0200
commitaa5761a5fb8c014b4f0e6e77f95a86299d8d94ef (patch)
tree5a4549541437b62f09b844379b60a4b50fe6de8b /components/layout/generated_content.rs
parent796a8dc618e3bfd2a7523e84f95c9ef59693932a (diff)
downloadservo-aa5761a5fb8c014b4f0e6e77f95a86299d8d94ef.tar.gz
servo-aa5761a5fb8c014b4f0e6e77f95a86299d8d94ef.zip
Remove usage of unstable box syntax, except in the script crate
… because there’s a lot of it, and script still uses any other unstable features anyway.
Diffstat (limited to 'components/layout/generated_content.rs')
-rw-r--r--components/layout/generated_content.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/layout/generated_content.rs b/components/layout/generated_content.rs
index 3f9d314fa19..e8e94cb25a7 100644
--- a/components/layout/generated_content.rs
+++ b/components/layout/generated_content.rs
@@ -248,7 +248,7 @@ impl<'a, 'b> ResolveGeneratedContentFragmentMutator<'a, 'b> {
// so that it isn't processed again on the next layout. FIXME (mbrubeck): When
// processing an inline flow, this traversal should be allowed to insert or remove
// fragments. Then we can just remove these fragments rather than adding placeholders.
- None => SpecificFragmentInfo::GeneratedContent(box GeneratedContentInfo::Empty)
+ None => SpecificFragmentInfo::GeneratedContent(Box::new(GeneratedContentInfo::Empty))
};
}
@@ -436,7 +436,8 @@ fn render_text(layout_context: &LayoutContext,
-> Option<SpecificFragmentInfo> {
let mut fragments = LinkedList::new();
let info = SpecificFragmentInfo::UnscannedText(
- box UnscannedTextFragmentInfo::new(string, None));
+ Box::new(UnscannedTextFragmentInfo::new(string, None))
+ );
fragments.push_back(Fragment::from_opaque_node_and_style(node,
pseudo,
style.clone(),