Skip to content

Commit

Permalink
Fix type inference error (fixup #22739)
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Feb 25, 2015
1 parent 9f8a1cb commit e61a790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/sys/windows/mod.rs
Expand Up @@ -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());
}
}

Expand Down

0 comments on commit e61a790

Please sign in to comment.