diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2020-10-29 07:17:33 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-29 07:17:33 +0300 |
commit | a99a9fd84ce5f7c3e79d172fc140fcdc0ffa47c9 (patch) | |
tree | d7668ea3349bdf0277e160b165612eec2e1688f5 /alacritty_terminal | |
parent | 598684243b587a96c986a0bc9627aaad56b0dfc1 (diff) | |
download | alacritty-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')
-rw-r--r-- | alacritty_terminal/src/ansi.rs | 2 | ||||
-rw-r--r-- | alacritty_terminal/src/lib.rs | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/alacritty_terminal/src/ansi.rs b/alacritty_terminal/src/ansi.rs index 5c2c9e57..877fd65f 100644 --- a/alacritty_terminal/src/ansi.rs +++ b/alacritty_terminal/src/ansi.rs @@ -1155,7 +1155,7 @@ where } } -fn attrs_from_sgr_parameters(params: &mut ParamsIter) -> Vec<Option<Attr>> { +fn attrs_from_sgr_parameters(params: &mut ParamsIter<'_>) -> Vec<Option<Attr>> { let mut attrs = Vec::with_capacity(params.size_hint().0); while let Some(param) = params.next() { 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; |