aboutsummaryrefslogtreecommitdiff
path: root/src/tty
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2018-12-07 14:58:11 +0100
committerChristian Duerr <chrisduerr@users.noreply.github.com>2018-12-07 13:58:11 +0000
commita6764ba05fee785186166c0710b08eb2a5ae302c (patch)
treea892e58d33619d142a89c874884875a159db94ee /src/tty
parentcdc22ce76a8b191bfe9dbd1ef55e24ef37ac001d (diff)
downloadalacritty-a6764ba05fee785186166c0710b08eb2a5ae302c.tar.gz
alacritty-a6764ba05fee785186166c0710b08eb2a5ae302c.zip
Use tool lints for clippy allow/deny lint attributes
Diffstat (limited to 'src/tty')
-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)
};