From 63e01e8bcceccb23c8ea7f325fbbbdbeb0d87e87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 5 Sep 2018 12:13:41 +0300 Subject: [PATCH] Move from send-cell to fragile The former is deprecated in favour of the latter and just a wrapper around fragile nowadays. --- src/codegen/function.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/codegen/function.rs b/src/codegen/function.rs index 76a09fe2a..59480abf7 100644 --- a/src/codegen/function.rs +++ b/src/codegen/function.rs @@ -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 }; @@ -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));