Allow buggy clippy lint on a per-crate basis

The previous method of allowing it through .cargo/config.toml doesn't
seem to work anymore.
This commit is contained in:
Jonas Platte 2022-06-07 18:15:05 +02:00 committed by Jonas Platte
parent 3d65c1e957
commit 56cf3ce94c
8 changed files with 17 additions and 2 deletions

View File

@ -44,8 +44,6 @@ rustflags = [
"-Wclippy::unreadable_literal",
"-Wclippy::unseparated_literal_suffix",
"-Wclippy::wildcard_imports",
# https://github.com/rust-lang/rust-clippy/issues/8875
"-Aclippy::derive_partial_eq_without_eq",
]
# activate the target-applies-to-host feature.

View File

@ -6,6 +6,8 @@
//! [client-api]: https://spec.matrix.org/v1.2/client-server-api/
#![warn(missing_docs)]
// https://github.com/rust-lang/rust-clippy/issues/8875
#![allow(clippy::derive_partial_eq_without_eq)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
pub mod account;

View File

@ -4,6 +4,8 @@
#![recursion_limit = "1024"]
#![warn(missing_docs)]
// https://github.com/rust-lang/rust-clippy/issues/8875
#![allow(clippy::derive_partial_eq_without_eq)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#[cfg(not(all(feature = "client", feature = "server")))]

View File

@ -1,3 +1,6 @@
// https://github.com/rust-lang/rust-clippy/issues/8875
#![allow(clippy::derive_partial_eq_without_eq)]
mod string {
use serde::{Deserialize, Serialize};
use serde_json::{from_value as from_json_value, json, to_value as to_json_value};

View File

@ -1,3 +1,6 @@
// https://github.com/rust-lang/rust-clippy/issues/8875
#![allow(clippy::derive_partial_eq_without_eq)]
use ruma_common::serde::StringEnum;
use serde_json::{from_value as from_json_value, json, to_value as to_json_value};

View File

@ -1,3 +1,6 @@
// https://github.com/rust-lang/rust-clippy/issues/8875
#![allow(clippy::derive_partial_eq_without_eq)]
use assert_matches::assert_matches;
use form_urlencoded::Serializer as Encoder;
use ruma_common::serde::urlencoded;

View File

@ -5,6 +5,8 @@
//! See the documentation for the individual macros for usage details.
#![warn(missing_docs)]
// https://github.com/rust-lang/rust-clippy/issues/8875
#![allow(clippy::derive_partial_eq_without_eq)]
use identifiers::expand_id_zst;
use proc_macro::TokenStream;

View File

@ -4,6 +4,8 @@
//! `.cargo/config`. Run commands as `cargo xtask [command]`.
#![allow(clippy::exhaustive_structs)]
// https://github.com/rust-lang/rust-clippy/issues/8875
#![allow(clippy::derive_partial_eq_without_eq)]
use std::path::PathBuf;