mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Upgrade to latest Rust.
This commit is contained in:
parent
728fb9a7de
commit
a7ef1cd35e
127 changed files with 1892 additions and 2501 deletions
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue