提交 e61a7904 编写于 作者: M Manish Goregaokar

Fix type inference error (fixup #22739)

上级 9f8a1cb3
......@@ -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());
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册