Skip to content

Commit a6d3fb0

Browse files
committed
revert platform-specific conversion
1 parent af9a36d commit a6d3fb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/core/shell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ mod imp {
457457
let mut winsize: libc::winsize = mem::zeroed();
458458
// The .into() here is needed for FreeBSD which defines TIOCGWINSZ
459459
// as c_uint but ioctl wants c_ulong.
460-
if libc::ioctl(libc::STDERR_FILENO, libc::TIOCGWINSZ, &mut winsize) < 0 {
460+
if libc::ioctl(libc::STDERR_FILENO, libc::TIOCGWINSZ.into(), &mut winsize) < 0 {
461461
return TtyWidth::NoTty;
462462
}
463463
if winsize.ws_col > 0 {

0 commit comments

Comments
 (0)