From 729fb51d77749188dd8fa1a589eb6b36637a3730 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Thu, 6 May 2021 14:18:40 +0200 Subject: [PATCH] Remove allow(clippy::lint) attributes that are no longer necessary --- crates/ruma-api-macros/src/lib.rs | 2 -- crates/ruma-events/src/event_type.rs | 1 - crates/ruma-events/src/lib.rs | 4 ---- 3 files changed, 7 deletions(-) diff --git a/crates/ruma-api-macros/src/lib.rs b/crates/ruma-api-macros/src/lib.rs index 40be8155..6b6f11de 100644 --- a/crates/ruma-api-macros/src/lib.rs +++ b/crates/ruma-api-macros/src/lib.rs @@ -8,8 +8,6 @@ //! //! [ruma-api]: https://github.com/ruma/ruma/tree/main/ruma-api -// Remove this once https://github.com/rust-lang/rust/issues/54883 becomes stable -#![allow(clippy::unnested_or_patterns)] #![recursion_limit = "256"] use proc_macro::TokenStream; diff --git a/crates/ruma-events/src/event_type.rs b/crates/ruma-events/src/event_type.rs index a011b1f3..a32c9d8a 100644 --- a/crates/ruma-events/src/event_type.rs +++ b/crates/ruma-events/src/event_type.rs @@ -215,7 +215,6 @@ mod tests { use super::EventType; - #[allow(clippy::cognitive_complexity)] #[test] fn serialize_and_deserialize_from_display_form() { serde_json_eq(EventType::CallAnswer, json!("m.call.answer")); diff --git a/crates/ruma-events/src/lib.rs b/crates/ruma-events/src/lib.rs index 7030e734..e3e92b4a 100644 --- a/crates/ruma-events/src/lib.rs +++ b/crates/ruma-events/src/lib.rs @@ -114,10 +114,6 @@ #![recursion_limit = "1024"] #![warn(missing_docs)] #![cfg_attr(docsrs, feature(doc_cfg))] -// This lint is no good -#![allow(clippy::new_without_default)] -// Remove this once our MSRV is >= 1.53 -#![allow(clippy::unnested_or_patterns)] use std::fmt::Debug;