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:
parent
3d65c1e957
commit
56cf3ce94c
@ -44,8 +44,6 @@ rustflags = [
|
|||||||
"-Wclippy::unreadable_literal",
|
"-Wclippy::unreadable_literal",
|
||||||
"-Wclippy::unseparated_literal_suffix",
|
"-Wclippy::unseparated_literal_suffix",
|
||||||
"-Wclippy::wildcard_imports",
|
"-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.
|
# activate the target-applies-to-host feature.
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
//! [client-api]: https://spec.matrix.org/v1.2/client-server-api/
|
//! [client-api]: https://spec.matrix.org/v1.2/client-server-api/
|
||||||
|
|
||||||
#![warn(missing_docs)]
|
#![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_attr(docsrs, feature(doc_auto_cfg))]
|
||||||
|
|
||||||
pub mod account;
|
pub mod account;
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
#![recursion_limit = "1024"]
|
#![recursion_limit = "1024"]
|
||||||
#![warn(missing_docs)]
|
#![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_attr(docsrs, feature(doc_auto_cfg))]
|
||||||
|
|
||||||
#[cfg(not(all(feature = "client", feature = "server")))]
|
#[cfg(not(all(feature = "client", feature = "server")))]
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// https://github.com/rust-lang/rust-clippy/issues/8875
|
||||||
|
#![allow(clippy::derive_partial_eq_without_eq)]
|
||||||
|
|
||||||
mod string {
|
mod string {
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use serde_json::{from_value as from_json_value, json, to_value as to_json_value};
|
use serde_json::{from_value as from_json_value, json, to_value as to_json_value};
|
||||||
|
@ -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 ruma_common::serde::StringEnum;
|
||||||
use serde_json::{from_value as from_json_value, json, to_value as to_json_value};
|
use serde_json::{from_value as from_json_value, json, to_value as to_json_value};
|
||||||
|
|
||||||
|
@ -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 assert_matches::assert_matches;
|
||||||
use form_urlencoded::Serializer as Encoder;
|
use form_urlencoded::Serializer as Encoder;
|
||||||
use ruma_common::serde::urlencoded;
|
use ruma_common::serde::urlencoded;
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
//! See the documentation for the individual macros for usage details.
|
//! See the documentation for the individual macros for usage details.
|
||||||
|
|
||||||
#![warn(missing_docs)]
|
#![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 identifiers::expand_id_zst;
|
||||||
use proc_macro::TokenStream;
|
use proc_macro::TokenStream;
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
//! `.cargo/config`. Run commands as `cargo xtask [command]`.
|
//! `.cargo/config`. Run commands as `cargo xtask [command]`.
|
||||||
|
|
||||||
#![allow(clippy::exhaustive_structs)]
|
#![allow(clippy::exhaustive_structs)]
|
||||||
|
// https://github.com/rust-lang/rust-clippy/issues/8875
|
||||||
|
#![allow(clippy::derive_partial_eq_without_eq)]
|
||||||
|
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user