diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2017-10-11 23:12:43 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2017-10-12 12:10:56 +0200 |
commit | aa5761a5fb8c014b4f0e6e77f95a86299d8d94ef (patch) | |
tree | 5a4549541437b62f09b844379b60a4b50fe6de8b /components/layout_thread/lib.rs | |
parent | 796a8dc618e3bfd2a7523e84f95c9ef59693932a (diff) | |
download | servo-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_thread/lib.rs')
-rw-r--r-- | components/layout_thread/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs index 1bfcf112c45..8ea36ae100f 100644 --- a/components/layout_thread/lib.rs +++ b/components/layout_thread/lib.rs @@ -5,7 +5,6 @@ //! The layout thread. Performs layout on the DOM, builds display lists and sends them to be //! painted. -#![feature(box_syntax)] #![feature(mpsc_select)] #![feature(nonzero)] @@ -689,8 +688,9 @@ impl LayoutThread { } Msg::SetQuirksMode(mode) => self.handle_set_quirks_mode(mode), Msg::GetRPC(response_chan) => { - response_chan.send(box LayoutRPCImpl(self.rw_data.clone()) as - Box<LayoutRPC + Send>).unwrap(); + response_chan.send( + Box::new(LayoutRPCImpl(self.rw_data.clone())) as Box<LayoutRPC + Send> + ).unwrap(); }, Msg::Reflow(data) => { let mut data = ScriptReflowResult::new(data); |