Skip to content

Commit

Permalink
Move from send-cell to fragile
Browse files Browse the repository at this point in the history
The former is deprecated in favour of the latter and just a wrapper
around fragile nowadays.
  • Loading branch information
sdroege committed Sep 5, 2018
1 parent d3116ca commit 63e01e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/codegen/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ pub fn body_chunk_futures(env: &Env, analysis: &analysis::functions::Info) -> St
} else {
try!(writeln!(body, "use GioFuture;"));
}
try!(writeln!(body, "use send_cell::SendCell;"));
try!(writeln!(body, "use fragile::Fragile;"));
try!(writeln!(body));

let skip = if async_future.is_method { 1 } else { 0 };
Expand Down Expand Up @@ -356,10 +356,10 @@ pub fn body_chunk_futures(env: &Env, analysis: &analysis::functions::Info) -> St
} else {
try!(writeln!(body, " let cancellable = Cancellable::new();"));
}
try!(writeln!(body, " let send = SendCell::new(send);"));
try!(writeln!(body, " let send = Fragile::new(send);"));

if async_future.is_method {
try!(writeln!(body, " let obj_clone = SendCell::new(obj.clone());"));
try!(writeln!(body, " let obj_clone = Fragile::new(obj.clone());"));
try!(writeln!(body, " obj.{}(", analysis.name));
} else if analysis.type_name.is_ok() {
try!(writeln!(body, " Self::{}(", analysis.name));
Expand Down

0 comments on commit 63e01e8

Please sign in to comment.