]> git.lizzy.rs Git - rust.git/commit
core: Add unwrap()/unwrap_err() methods to Result
authorAlex Crichton <alex@alexcrichton.com>
Thu, 1 May 2014 18:12:16 +0000 (11:12 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 7 May 2014 15:16:14 +0000 (08:16 -0700)
commitd4b5d82a3356630ede4ce1b436cb59760be7b703
tree8e690f9b6887b1a96ddb44385ef38c453fa7796b
parenta156534a96a6c401b14c80618c247eaadf876eb7
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.
12 files changed:
src/libstd/fmt/num.rs
src/libstd/io/buffered.rs
src/libstd/io/fs.rs
src/libstd/io/net/udp.rs
src/libstd/io/stdio.rs
src/libstd/io/tempfile.rs
src/libstd/num/strconv.rs
src/libstd/prelude.rs
src/libstd/repr.rs
src/libstd/result.rs [new file with mode: 0644]
src/libstd/rt/task.rs
src/libstd/task.rs