Clean up lint attributes

This commit is contained in:
Jonas Platte 2021-05-05 23:39:52 +02:00
parent 6ea55459eb
commit cf291bd5ba
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
11 changed files with 10 additions and 15 deletions

View File

@ -8,7 +8,6 @@
//! //!
//! [ruma-api]: https://github.com/ruma/ruma/tree/main/ruma-api //! [ruma-api]: https://github.com/ruma/ruma/tree/main/ruma-api
#![allow(clippy::cognitive_complexity)]
// Remove this once https://github.com/rust-lang/rust/issues/54883 becomes stable // Remove this once https://github.com/rust-lang/rust/issues/54883 becomes stable
#![allow(clippy::unnested_or_patterns)] #![allow(clippy::unnested_or_patterns)]
#![recursion_limit = "256"] #![recursion_limit = "256"]

View File

@ -13,9 +13,7 @@
//! //!
//! [apis]: https://matrix.org/docs/spec/#matrix-apis //! [apis]: https://matrix.org/docs/spec/#matrix-apis
#![doc(html_favicon_url = "https://www.ruma.io/favicon.ico")] #![warn(missing_docs)]
#![warn(rust_2018_idioms)]
#![deny(missing_copy_implementations, missing_debug_implementations, missing_docs)]
#[cfg(not(all(feature = "client", feature = "server")))] #[cfg(not(all(feature = "client", feature = "server")))]
compile_error!("ruma_api's Cargo features only exist as a workaround are not meant to be disabled"); compile_error!("ruma_api's Cargo features only exist as a workaround are not meant to be disabled");

View File

@ -5,7 +5,7 @@
//! //!
//! [appservice-api]: https://matrix.org/docs/spec/application_service/r0.1.2.html //! [appservice-api]: https://matrix.org/docs/spec/application_service/r0.1.2.html
#![warn(missing_debug_implementations, missing_docs)] #![warn(missing_docs)]
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};

View File

@ -5,7 +5,7 @@
//! //!
//! [client-api]: https://matrix.org/docs/spec/client_server/r0.6.1.html //! [client-api]: https://matrix.org/docs/spec/client_server/r0.6.1.html
#![warn(missing_debug_implementations, missing_docs)] #![warn(missing_docs)]
#![cfg_attr(docsrs, feature(doc_cfg))] #![cfg_attr(docsrs, feature(doc_cfg))]
pub mod error; pub mod error;

View File

@ -71,8 +71,7 @@
//! # ; //! # ;
//! ``` //! ```
#![warn(rust_2018_idioms)] #![warn( missing_docs)]
#![deny(missing_debug_implementations, missing_docs)]
use std::{ use std::{
future::Future, future::Future,

View File

@ -2,7 +2,7 @@
#![doc(html_logo_url = "https://www.ruma.io/images/logo.png")] #![doc(html_logo_url = "https://www.ruma.io/images/logo.png")]
//! Common types for other ruma crates. //! Common types for other ruma crates.
#![warn(missing_docs, missing_debug_implementations)] #![warn(missing_docs)]
#![cfg_attr(docsrs, feature(doc_cfg))] #![cfg_attr(docsrs, feature(doc_cfg))]
pub mod authentication; pub mod authentication;

View File

@ -6,7 +6,7 @@
//! //!
//! [ruma-events]: https://github.com/ruma/ruma/tree/main/ruma-events //! [ruma-events]: https://github.com/ruma/ruma/tree/main/ruma-events
#![deny(missing_copy_implementations, missing_debug_implementations, missing_docs)] #![warn(missing_docs)]
use proc_macro::TokenStream; use proc_macro::TokenStream;
use proc_macro2 as pm2; use proc_macro2 as pm2;

View File

@ -112,7 +112,7 @@
//! event structure, if needed. //! event structure, if needed.
#![recursion_limit = "1024"] #![recursion_limit = "1024"]
#![warn(missing_debug_implementations, missing_docs, rust_2018_idioms)] #![warn(missing_docs)]
#![cfg_attr(docsrs, feature(doc_cfg))] #![cfg_attr(docsrs, feature(doc_cfg))]
// This lint is no good // This lint is no good
#![allow(clippy::new_without_default)] #![allow(clippy::new_without_default)]

View File

@ -3,7 +3,7 @@
//! Types for [Matrix](https://matrix.org/) identifiers for devices, events, keys, rooms, servers, //! Types for [Matrix](https://matrix.org/) identifiers for devices, events, keys, rooms, servers,
//! users and URIs. //! users and URIs.
#![warn(rust_2018_idioms, missing_debug_implementations, missing_docs)] #![warn(missing_docs)]
#![cfg_attr(docsrs, feature(doc_cfg))] #![cfg_attr(docsrs, feature(doc_cfg))]
// Renamed in `Cargo.toml` so we can have a serde feature. // Renamed in `Cargo.toml` so we can have a serde feature.

View File

@ -42,8 +42,7 @@
//! signatures and hashes on an event, use the `verify_event` function. See the documentation for //! signatures and hashes on an event, use the `verify_event` function. See the documentation for
//! these respective functions for more details and full examples of use. //! these respective functions for more details and full examples of use.
#![warn(rust_2018_idioms)] #![warn(missing_docs)]
#![deny(missing_debug_implementations, missing_docs)]
use std::{ use std::{
error::Error as StdError, error::Error as StdError,

View File

@ -58,7 +58,7 @@
//! If you are viewing this on `docs.rs`, you can have a look at the feature dependencies by //! If you are viewing this on `docs.rs`, you can have a look at the feature dependencies by
//! clicking **Feature flags** in the toolbar at the top. //! clicking **Feature flags** in the toolbar at the top.
#![deny(missing_docs)] #![warn(missing_docs)]
#![cfg_attr(docsrs, feature(doc_cfg))] #![cfg_attr(docsrs, feature(doc_cfg))]
#[doc(no_inline)] #[doc(no_inline)]