graphene: fix clippy warnings
// Copyright 2013-2018, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <https://opensource.org/licenses/MIT>
-
-#![allow(deprecated)]
-#![cfg_attr(feature = "cargo-clippy", allow(cast_ptr_alignment))]
-#![cfg_attr(feature = "cargo-clippy", allow(transmute_int_to_char))]
-#![cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ptr))]
-#![cfg_attr(feature = "cargo-clippy", allow(trivially_copy_pass_by_ref))]
#![cfg_attr(feature = "dox", feature(doc_cfg))]
+#![allow(deprecated)]
+#![allow(clippy::cast_ptr_alignment)]
+#![allow(clippy::transmute_int_to_char)]
+#![allow(clippy::transmute_ptr_to_ptr)]
+#![allow(clippy::trivially_copy_pass_by_ref)]
#[macro_use]
extern crate glib;
@@ -28,9 +27,10 @@ macro_rules! skip_assert_initialized {
() => {};
}
-#[cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ref))]
-#[cfg_attr(feature = "cargo-clippy", allow(type_complexity))]
-#[cfg_attr(feature = "cargo-clippy", allow(unreadable_literal))]
+#[allow(clippy::transmute_ptr_to_ref)]
+#[allow(clippy::type_complexity)]
+#[allow(clippy::unreadable_literal)]
+#[allow(clippy::derive_hash_xor_eq)]
#[allow(unused_imports)]
mod auto;
