We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f8a1cb commit e61a790Copy full SHA for e61a790
src/libstd/sys/windows/mod.rs
@@ -198,7 +198,7 @@ pub fn set_nonblocking(fd: sock_t, nb: bool) {
198
if unsafe { c::ioctlsocket(fd, c::FIONBIO, &mut set) } != 0 {
199
// The above function should not return an error unless we passed it
200
// invalid parameters. Panic on errors.
201
- Err(last_error()).unwrap();
+ panic!("set_nonblocking called with invalid parameters: {}", last_error());
202
}
203
204
0 commit comments