diff options
| author | Kevin Ballard <kevin@sb.org> | 2014-02-07 16:36:59 -0800 |
|---|---|---|
| committer | Kevin Ballard <kevin@sb.org> | 2014-02-07 22:31:52 -0800 |
| commit | 086c0dd33febb752b036fba62dcfb8aa22a51642 (patch) | |
| tree | 2543a402c3d2ce04b4d7cd7e8c60da6c5fb40371 /src/libextra | |
| parent | 122c94d2f3909a06a5dd172b423b9b56a2f17039 (diff) | |
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.
Diffstat (limited to 'src/libextra')
| -rw-r--r-- | src/libextra/test.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libextra/test.rs b/src/libextra/test.rs index d1fffd9e515..2d52a59c836 100644 --- a/src/libextra/test.rs +++ b/src/libextra/test.rs @@ -893,8 +893,8 @@ pub fn run_test(force_ignore: bool, spawn(proc() { let mut task = task::task(); task.name(match desc.name { - DynTestName(ref name) => SendStrOwned(name.clone()), - StaticTestName(name) => SendStrStatic(name), + DynTestName(ref name) => name.to_owned().into_maybe_owned(), + StaticTestName(name) => name.into_maybe_owned() }); let result_future = task.future_result(); task.spawn(testfn); |
