Skip to content

Commit

Permalink
Merge pull request #636 from sdroege/fragile
Browse files Browse the repository at this point in the history
Move from send-cell to fragile
  • Loading branch information
EPashkin committed Sep 5, 2018
2 parents d3116ca + 63e01e8 commit f5fca82
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 f5fca82

Please sign in to comment.