aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-12-16 22:13:51 -0800
committerJoe Wilm <joe@jwilm.com>2016-12-16 22:13:51 -0800
commitdc918ae71a5e6c78a77994d7ce106a2253918c54 (patch)
tree537c7d13443e18ed657398f4eca0bf921ef4ac5e /src/lib.rs
parent3b995ff87a54239ecacb95d51f65c17504a8d22c (diff)
downloadalacritty-dc918ae71a5e6c78a77994d7ce106a2253918c54.tar.gz
alacritty-dc918ae71a5e6c78a77994d7ce106a2253918c54.zip
Rustup and clippy
All of the changes in this commit are due to clippy lints.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 9903f591..f014d833 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -13,15 +13,19 @@
// limitations under the License.
//
//! Alacritty - The GPU Enhanced Terminal
-#![feature(question_mark)]
#![feature(range_contains)]
#![feature(inclusive_range_syntax)]
#![feature(drop_types_in_const)]
#![feature(unicode)]
#![feature(step_trait)]
+#![feature(plugin)]
+#![cfg_attr(feature = "clippy", plugin(clippy))]
+#![cfg_attr(feature = "clippy", deny(clippy))]
+#![cfg_attr(feature = "clippy", deny(enum_glob_use))]
+#![cfg_attr(feature = "clippy", deny(if_not_else))]
+#![cfg_attr(feature = "clippy", deny(wrong_pub_self_convention))]
#![cfg_attr(test, feature(test))]
#![feature(core_intrinsics)]
-#![allow(stable_features)] // lying about question_mark because 1.14.0 isn't released!
#![feature(proc_macro)]
@@ -75,6 +79,8 @@ pub struct Rgb {
pub b: u8,
}
+#[cfg_attr(feature = "clippy", allow(too_many_arguments))]
+#[cfg_attr(feature = "clippy", allow(doc_markdown))]
pub mod gl {
#![allow(non_upper_case_globals)]
include!(concat!(env!("OUT_DIR"), "/gl_bindings.rs"));