Clean up lint attributes
This commit is contained in:
parent
6ea55459eb
commit
cf291bd5ba
@ -8,7 +8,6 @@
|
||||
//!
|
||||
//! [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
|
||||
#![allow(clippy::unnested_or_patterns)]
|
||||
#![recursion_limit = "256"]
|
||||
|
@ -13,9 +13,7 @@
|
||||
//!
|
||||
//! [apis]: https://matrix.org/docs/spec/#matrix-apis
|
||||
|
||||
#![doc(html_favicon_url = "https://www.ruma.io/favicon.ico")]
|
||||
#![warn(rust_2018_idioms)]
|
||||
#![deny(missing_copy_implementations, missing_debug_implementations, missing_docs)]
|
||||
#![warn(missing_docs)]
|
||||
|
||||
#[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");
|
||||
|
@ -5,7 +5,7 @@
|
||||
//!
|
||||
//! [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};
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
//!
|
||||
//! [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))]
|
||||
|
||||
pub mod error;
|
||||
|
@ -71,8 +71,7 @@
|
||||
//! # ;
|
||||
//! ```
|
||||
|
||||
#![warn(rust_2018_idioms)]
|
||||
#![deny(missing_debug_implementations, missing_docs)]
|
||||
#![warn( missing_docs)]
|
||||
|
||||
use std::{
|
||||
future::Future,
|
||||
|
@ -2,7 +2,7 @@
|
||||
#![doc(html_logo_url = "https://www.ruma.io/images/logo.png")]
|
||||
//! Common types for other ruma crates.
|
||||
|
||||
#![warn(missing_docs, missing_debug_implementations)]
|
||||
#![warn(missing_docs)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
|
||||
pub mod authentication;
|
||||
|
@ -6,7 +6,7 @@
|
||||
//!
|
||||
//! [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_macro2 as pm2;
|
||||
|
@ -112,7 +112,7 @@
|
||||
//! event structure, if needed.
|
||||
|
||||
#![recursion_limit = "1024"]
|
||||
#![warn(missing_debug_implementations, missing_docs, rust_2018_idioms)]
|
||||
#![warn(missing_docs)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
// This lint is no good
|
||||
#![allow(clippy::new_without_default)]
|
||||
|
@ -3,7 +3,7 @@
|
||||
//! Types for [Matrix](https://matrix.org/) identifiers for devices, events, keys, rooms, servers,
|
||||
//! users and URIs.
|
||||
|
||||
#![warn(rust_2018_idioms, missing_debug_implementations, missing_docs)]
|
||||
#![warn(missing_docs)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
|
||||
// Renamed in `Cargo.toml` so we can have a serde feature.
|
||||
|
@ -42,8 +42,7 @@
|
||||
//! 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.
|
||||
|
||||
#![warn(rust_2018_idioms)]
|
||||
#![deny(missing_debug_implementations, missing_docs)]
|
||||
#![warn(missing_docs)]
|
||||
|
||||
use std::{
|
||||
error::Error as StdError,
|
||||
|
@ -58,7 +58,7 @@
|
||||
//! 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.
|
||||
|
||||
#![deny(missing_docs)]
|
||||
#![warn(missing_docs)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
|
||||
#[doc(no_inline)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user