-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Add accessors for io::Error's inner Error #25816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This all looks good to me, with downcasting on Can you add some tests which exercise the downcasting and the various accessors? |
error::Error itself has downcasting methods, so there's no need to duplicate those here.
Ergonomics are a bit crappy right now because method resolution isn't smart enough to drop bounds, unfortunately.
1695200
to
f65ba38
Compare
Updated |
Could you add "requires UFCS to downcast" to one of the |
⌛ Testing commit aebf331 with merge 9befda2... |
💔 Test failed - auto-linux-64-nopt-t |
@bors: retry On Thu, May 28, 2015 at 1:16 PM, bors [email protected] wrote:
|
The first commit simply forwards `io::Error`'s `cause` implementation to the inner error. The second commit adds accessor methods for the inner error. Method names mirror those used elsewhere like `BufReader`. r? @alexcrichton
The first commit simply forwards
io::Error
'scause
implementation to the inner error.The second commit adds accessor methods for the inner error. Method names mirror those used elsewhere like
BufReader
.r? @alexcrichton