diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-05-01 11:12:16 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-05-07 08:16:14 -0700 |
| commit | d4b5d82a3356630ede4ce1b436cb59760be7b703 (patch) | |
| tree | 8e690f9b6887b1a96ddb44385ef38c453fa7796b /src/libstd/task.rs | |
| parent | a156534a96a6c401b14c80618c247eaadf876eb7 (diff) | |
core: Add unwrap()/unwrap_err() methods to Result
These implementations must live in libstd right now because the fmt module has not been migrated yet. This will occur in a later PR. Just to be clear, there are new extension traits, but they are not necessary once the std::fmt module has migrated to libcore, which is a planned migration in the future.
Diffstat (limited to 'src/libstd/task.rs')
| -rw-r--r-- | src/libstd/task.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/task.rs b/src/libstd/task.rs index 23831e40a8b..2f7b31ae31d 100644 --- a/src/libstd/task.rs +++ b/src/libstd/task.rs @@ -50,6 +50,7 @@ use str::{Str, SendStr, IntoMaybeOwned}; #[cfg(test)] use any::{AnyOwnExt, AnyRefExt}; #[cfg(test)] use result; #[cfg(test)] use str::StrAllocating; +#[cfg(test)] use realstd::result::ResultUnwrap; /// Indicates the manner in which a task exited. /// |
