summaryrefslogtreecommitdiffstats
path: root/src/tty/unix.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tty/unix.rs')
-rw-r--r--src/tty/unix.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tty/unix.rs b/src/tty/unix.rs
index db20f6bf..a1774d05 100644
--- a/src/tty/unix.rs
+++ b/src/tty/unix.rs
@@ -124,7 +124,7 @@ fn set_controlling_terminal(fd: c_int) {
// based on architecture (32/64). So a generic cast is used to make sure
// there are no issues. To allow such a generic cast the clippy warning
// is disabled.
- #[cfg_attr(feature = "cargo-clippy", allow(cast_lossless))]
+ #[allow(clippy::cast_lossless)]
libc::ioctl(fd, TIOCSCTTY as _, 0)
};