diff options
author | Jack Moffitt <jack@metajack.im> | 2013-12-20 22:04:46 -0700 |
---|---|---|
committer | Jack Moffitt <jack@metajack.im> | 2014-01-12 19:45:45 -0700 |
commit | a7ef1cd35e9347a285f245041db4eb94047f4ab0 (patch) | |
tree | a6dc269d9f3cb031d7ea096628c81b7edc971c1c /src/components/script/layout_interface.rs | |
parent | 728fb9a7dedf67445e7f12eafb314117efede70d (diff) | |
download | servo-a7ef1cd35e9347a285f245041db4eb94047f4ab0.tar.gz servo-a7ef1cd35e9347a285f245041db4eb94047f4ab0.zip |
Upgrade to latest Rust.
Diffstat (limited to 'src/components/script/layout_interface.rs')
-rw-r--r-- | src/components/script/layout_interface.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/script/layout_interface.rs b/src/components/script/layout_interface.rs index c0b35ef6a3f..613e61a3429 100644 --- a/src/components/script/layout_interface.rs +++ b/src/components/script/layout_interface.rs @@ -122,9 +122,11 @@ pub struct Reflow { /// Encapsulates a channel to the layout task. #[deriving(Clone)] pub struct LayoutChan(SharedChan<Msg>); + impl LayoutChan { - pub fn new(chan: Chan<Msg>) -> LayoutChan { - LayoutChan(SharedChan::new(chan)) + pub fn new() -> (Port<Msg>, LayoutChan) { + let (port, chan) = SharedChan::new(); + (port, LayoutChan(chan)) } } |