Skip to content

Commit e61a790

Browse files
committed
Fix type inference error (fixup rust-lang#22739)
1 parent 9f8a1cb commit e61a790

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sys/windows/mod.rs

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

0 commit comments

Comments
 (0)