From 086c0dd33febb752b036fba62dcfb8aa22a51642 Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Fri, 7 Feb 2014 16:36:59 -0800 Subject: Delete send_str, rewrite clients on top of MaybeOwned<'static> Declare a `type SendStr = MaybeOwned<'static>` to ease readibility of types that needed the old SendStr behavior. Implement all the traits for MaybeOwned that SendStr used to implement. --- src/libnative/task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libnative') diff --git a/src/libnative/task.rs b/src/libnative/task.rs index c08e326d903..d0ca8364aa7 100644 --- a/src/libnative/task.rs +++ b/src/libnative/task.rs @@ -294,7 +294,7 @@ mod tests { #[test] fn smoke_opts() { let mut opts = TaskOpts::new(); - opts.name = Some(SendStrStatic("test")); + opts.name = Some("test".into_maybe_owned()); opts.stack_size = Some(20 * 4096); let (p, c) = Chan::new(); opts.notify_chan = Some(c); -- cgit 1.4.1-3-g733a5