From a6764ba05fee785186166c0710b08eb2a5ae302c Mon Sep 17 00:00:00 2001 From: Matthias Krüger Date: Fri, 7 Dec 2018 14:58:11 +0100 Subject: Use tool lints for clippy allow/deny lint attributes --- src/tty/unix.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tty') 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) }; -- cgit