Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The explanation is at http://doc.rust-lang.org/std/old_io/#error-handling: IoResult implements a bunch of IO traits so you don't need to unwrap it before using it:

> Common traits are implemented for IoResult, e.g. impl<R: Reader> Reader for IoResult<R>, so that error values do not have to be 'unwrapped' before use.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: