We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af9a36d commit a6d3fb0Copy full SHA for a6d3fb0
src/cargo/core/shell.rs
@@ -457,7 +457,7 @@ mod imp {
457
let mut winsize: libc::winsize = mem::zeroed();
458
// The .into() here is needed for FreeBSD which defines TIOCGWINSZ
459
// as c_uint but ioctl wants c_ulong.
460
- if libc::ioctl(libc::STDERR_FILENO, libc::TIOCGWINSZ, &mut winsize) < 0 {
+ if libc::ioctl(libc::STDERR_FILENO, libc::TIOCGWINSZ.into(), &mut winsize) < 0 {
461
return TtyWidth::NoTty;
462
}
463
if winsize.ws_col > 0 {
0 commit comments