Uh oh!
There was an error while loading. Please reload this page.
don't use Result::ok just to be able to use unwrap/unwrap_or - #23512
Conversation
rust-highfive
commented
Mar 19, 2015
r? @pcwalton (rust_highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
this is really ugly, but it represents the comment more.
maybe I should just leave the ok().unwrap()?
There was a problem hiding this comment.
Yeah I'd just leave this as it was.
There was a problem hiding this comment.
join() returns a Result<T, Box<Any + Send + 'static>>
there are lots of other cases where the result is ignored since Debug cannot be implemented generically to return "thread panicked" on Err
ee74f02 to
da18d83Comparealexcrichton
commented
Mar 19, 2015
Looks good to me, thanks! r=me with a squash and a nit |
oli-obk
commented
Mar 19, 2015
make check running, will squash once it's done |
oli-obk
commented
Mar 20, 2015
squashed and checked @alexcrichton |
alexcrichton
commented
Mar 20, 2015
because then the call to `unwrap()` will not print the error object.
bors
commented
Mar 20, 2015
⌛ Testing commit b4a1e59 with merge e2fa53e... |
because then the call to
unwrap()will not print the error object.