aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/lib.rs
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2020-10-29 07:17:33 +0300
committerGitHub <noreply@github.com>2020-10-29 07:17:33 +0300
commita99a9fd84ce5f7c3e79d172fc140fcdc0ffa47c9 (patch)
treed7668ea3349bdf0277e160b165612eec2e1688f5 /alacritty_terminal/src/lib.rs
parent598684243b587a96c986a0bc9627aaad56b0dfc1 (diff)
downloadalacritty-a99a9fd84ce5f7c3e79d172fc140fcdc0ffa47c9.tar.gz
alacritty-a99a9fd84ce5f7c3e79d172fc140fcdc0ffa47c9.zip
Error on warnings when running clippy
It should simplify tracking of new warnings raised on CI builds and when cross checking. This commit also enables warnings for 'rust_2018_idioms' and 'future_incompatible'.
Diffstat (limited to 'alacritty_terminal/src/lib.rs')
-rw-r--r--alacritty_terminal/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/alacritty_terminal/src/lib.rs b/alacritty_terminal/src/lib.rs
index 2f3beeb0..abeba531 100644
--- a/alacritty_terminal/src/lib.rs
+++ b/alacritty_terminal/src/lib.rs
@@ -1,6 +1,8 @@
//! Alacritty - The GPU Enhanced Terminal.
+#![warn(rust_2018_idioms, future_incompatible)]
#![deny(clippy::all, clippy::if_not_else, clippy::enum_glob_use, clippy::wrong_pub_self_convention)]
+#![cfg_attr(feature = "cargo-clippy", deny(warnings))]
#![cfg_attr(all(test, feature = "bench"), feature(test))]
pub mod ansi;