Fix type inference error (fixup #22739)

This commit is contained in:
Manish Goregaokar 2015-02-25 13:58:58 +05:30
parent 9f8a1cb38d
commit e61a790495

View file

@ -198,7 +198,7 @@ pub fn set_nonblocking(fd: sock_t, nb: bool) {
if unsafe { c::ioctlsocket(fd, c::FIONBIO, &mut set) } != 0 {
// The above function should not return an error unless we passed it
// invalid parameters. Panic on errors.
Err(last_error()).unwrap();
panic!("set_nonblocking called with invalid parameters: {}", last_error());
}
}