diff options
| author | bors <bors@rust-lang.org> | 2019-09-04 07:47:08 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-09-04 07:47:08 +0000 |
| commit | 5f42f3e108db9390038a93fc95d9376aa871ae34 (patch) | |
| tree | b95686e19c9f177dee1d6a08b0bd00f3f454bde5 /src/libsyntax/parse/parser | |
| parent | b9de4ef89e0e53099a084001b26ec3207c5f8391 (diff) | |
| parent | 61e52866352339326600fe694e92373f2e07fd79 (diff) | |
| download | rust-5f42f3e108db9390038a93fc95d9376aa871ae34.tar.gz rust-5f42f3e108db9390038a93fc95d9376aa871ae34.zip | |
Auto merge of #63166 - ksqsf:master, r=alexcrichton
Add Result::cloned{,_err} and Result::copied{,_err}
This is a little nice addition to `Result`.
1. I'm not sure how useful are `cloned_err` and `copied_err`, but for the sake of completeness they are here.
2. Naming is similar to `map`/`map_err`. I thought about naming `cloned` as `cloned_ok` and add another method called `cloned` that clones both Ok and Err, but `cloned_ok` should be more prevalent than `cloned_both`.
Diffstat (limited to 'src/libsyntax/parse/parser')
0 files changed, 0 insertions, 0 deletions
