diff --git a/src/accounts.rs b/src/accounts.rs index 0ec5d1f40..511f9f5b5 100644 --- a/src/accounts.rs +++ b/src/accounts.rs @@ -1,7 +1,5 @@ //! # Account manager module. -#![warn(missing_docs)] - use std::collections::BTreeMap; use std::path::{Path, PathBuf}; diff --git a/src/chat.rs b/src/chat.rs index e92e6d574..1d41bb5ac 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -1,5 +1,7 @@ //! # Chat module. +#![allow(missing_docs)] + use std::collections::HashMap; use std::convert::{TryFrom, TryInto}; use std::fmt; diff --git a/src/chatlist.rs b/src/chatlist.rs index 8482213f2..da7d309a4 100644 --- a/src/chatlist.rs +++ b/src/chatlist.rs @@ -1,5 +1,7 @@ //! # Chat list module. +#![allow(missing_docs)] + use anyhow::{ensure, Context as _, Result}; use crate::chat::{update_special_chat_names, Chat, ChatId, ChatVisibility}; diff --git a/src/config.rs b/src/config.rs index 259c3e063..aea06b2a7 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,5 +1,7 @@ //! # Key-value configuration management. +#![allow(missing_docs)] + use anyhow::{ensure, Context as _, Result}; use strum::{EnumProperty as EnumPropertyTrait, IntoEnumIterator}; use strum_macros::{AsRefStr, Display, EnumIter, EnumProperty, EnumString}; diff --git a/src/constants.rs b/src/constants.rs index bbdad67f7..dde6219f5 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -1,4 +1,7 @@ //! # Constants. + +#![allow(missing_docs)] + use deltachat_derive::{FromSql, ToSql}; use once_cell::sync::Lazy; use serde::{Deserialize, Serialize}; diff --git a/src/contact.rs b/src/contact.rs index ddaec2306..79f131283 100644 --- a/src/contact.rs +++ b/src/contact.rs @@ -1,5 +1,7 @@ //! Contacts module +#![allow(missing_docs)] + use std::cmp::Reverse; use std::collections::BinaryHeap; use std::convert::{TryFrom, TryInto}; diff --git a/src/context.rs b/src/context.rs index d28774df9..a78ea833c 100644 --- a/src/context.rs +++ b/src/context.rs @@ -1,5 +1,7 @@ //! Context module. +#![allow(missing_docs)] + use std::collections::{BTreeMap, HashMap}; use std::ffi::OsString; use std::ops::Deref; diff --git a/src/download.rs b/src/download.rs index f9fc9711b..3253e54fe 100644 --- a/src/download.rs +++ b/src/download.rs @@ -1,5 +1,7 @@ //! # Download large messages manually. +#![allow(missing_docs)] + use anyhow::{anyhow, Result}; use deltachat_derive::{FromSql, ToSql}; use serde::{Deserialize, Serialize}; diff --git a/src/ephemeral.rs b/src/ephemeral.rs index a65e1636c..aff6d7e32 100644 --- a/src/ephemeral.rs +++ b/src/ephemeral.rs @@ -62,6 +62,8 @@ //! the database entries which are expired either according to their //! ephemeral message timers or global `delete_server_after` setting. +#![allow(missing_docs)] + use std::convert::{TryFrom, TryInto}; use std::num::ParseIntError; use std::str::FromStr; diff --git a/src/events.rs b/src/events.rs index d0033c4ae..b2744f4d5 100644 --- a/src/events.rs +++ b/src/events.rs @@ -1,5 +1,7 @@ //! # Events specification. +#![allow(missing_docs)] + use std::path::PathBuf; use async_channel::{self as channel, Receiver, Sender, TrySendError}; diff --git a/src/headerdef.rs b/src/headerdef.rs index 231bc3987..30d01222b 100644 --- a/src/headerdef.rs +++ b/src/headerdef.rs @@ -1,5 +1,7 @@ //! # List of email headers. +#![allow(missing_docs)] + use mailparse::{MailHeader, MailHeaderMap}; #[derive(Debug, Display, Clone, PartialEq, Eq, EnumVariantNames, IntoStaticStr)] diff --git a/src/imex.rs b/src/imex.rs index 809c7958e..11bc0c748 100644 --- a/src/imex.rs +++ b/src/imex.rs @@ -1,5 +1,7 @@ //! # Import/export module. +#![allow(missing_docs)] + use std::any::Any; use std::ffi::OsStr; use std::path::{Path, PathBuf}; diff --git a/src/job.rs b/src/job.rs index 438cbbab5..0438e4494 100644 --- a/src/job.rs +++ b/src/job.rs @@ -2,6 +2,9 @@ //! //! This module implements a job queue maintained in the SQLite database //! and job types. + +#![allow(missing_docs)] + use std::fmt; use anyhow::{Context as _, Result}; diff --git a/src/key.rs b/src/key.rs index 7c385a313..fc1ae4847 100644 --- a/src/key.rs +++ b/src/key.rs @@ -1,5 +1,7 @@ //! Cryptographic key module. +#![allow(missing_docs)] + use std::collections::BTreeMap; use std::fmt; use std::io::Cursor; diff --git a/src/lib.rs b/src/lib.rs index f3925a306..a50483843 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,6 +6,7 @@ unused, clippy::correctness, missing_debug_implementations, + missing_docs, clippy::all, clippy::indexing_slicing, clippy::wildcard_imports, @@ -34,6 +35,7 @@ extern crate rusqlite; #[macro_use] extern crate strum_macros; +#[allow(missing_docs)] pub trait ToSql: rusqlite::ToSql + Send + Sync {} impl ToSql for T {} diff --git a/src/location.rs b/src/location.rs index f99838d9e..c6845898a 100644 --- a/src/location.rs +++ b/src/location.rs @@ -1,4 +1,7 @@ //! Location handling. + +#![allow(missing_docs)] + use std::convert::TryFrom; use std::time::Duration; diff --git a/src/log.rs b/src/log.rs index 4ae368514..51ada7480 100644 --- a/src/log.rs +++ b/src/log.rs @@ -1,5 +1,7 @@ //! # Logging. +#![allow(missing_docs)] + use crate::context::Context; #[macro_export] diff --git a/src/message.rs b/src/message.rs index 600bbc8f1..5c8f64435 100644 --- a/src/message.rs +++ b/src/message.rs @@ -1,5 +1,7 @@ //! # Messages and their identifiers. +#![allow(missing_docs)] + use std::collections::BTreeSet; use std::path::{Path, PathBuf}; diff --git a/src/mimeparser.rs b/src/mimeparser.rs index 8c4826633..e85c95246 100644 --- a/src/mimeparser.rs +++ b/src/mimeparser.rs @@ -1,5 +1,7 @@ //! # MIME message parsing module. +#![allow(missing_docs)] + use std::collections::{HashMap, HashSet}; use std::future::Future; use std::pin::Pin; diff --git a/src/oauth2.rs b/src/oauth2.rs index 1d0296716..d48cb45a6 100644 --- a/src/oauth2.rs +++ b/src/oauth2.rs @@ -1,5 +1,7 @@ //! OAuth 2 module. +#![allow(missing_docs)] + use std::collections::HashMap; use anyhow::Result; diff --git a/src/peerstate.rs b/src/peerstate.rs index 22e4c8f50..931891929 100644 --- a/src/peerstate.rs +++ b/src/peerstate.rs @@ -1,5 +1,7 @@ //! # [Autocrypt Peer State](https://autocrypt.org/level1.html#peer-state-management) module. +#![allow(missing_docs)] + use std::collections::HashSet; use std::fmt; diff --git a/src/pgp.rs b/src/pgp.rs index e9b9e7c84..8a91a46b3 100644 --- a/src/pgp.rs +++ b/src/pgp.rs @@ -1,5 +1,7 @@ //! OpenPGP helper module using [rPGP facilities](https://github.com/rpgp/rpgp). +#![allow(missing_docs)] + use std::collections::{BTreeMap, HashSet}; use std::io; use std::io::Cursor; diff --git a/src/plaintext.rs b/src/plaintext.rs index fd3ba1675..5bdeffed4 100644 --- a/src/plaintext.rs +++ b/src/plaintext.rs @@ -1,5 +1,7 @@ //! Handle plain text together with some attributes. +#![allow(missing_docs)] + use crate::simplify::split_lines; use once_cell::sync::Lazy; diff --git a/src/provider.rs b/src/provider.rs index fb36982a6..4d8ee74d8 100644 --- a/src/provider.rs +++ b/src/provider.rs @@ -1,5 +1,7 @@ //! [Provider database](https://providers.delta.chat/) module. +#![allow(missing_docs)] + mod data; use crate::config::Config; diff --git a/src/qr.rs b/src/qr.rs index c12ce8045..6a735216e 100644 --- a/src/qr.rs +++ b/src/qr.rs @@ -1,5 +1,7 @@ //! # QR code module. +#![allow(missing_docs)] + mod dclogin_scheme; pub use dclogin_scheme::LoginOptions; diff --git a/src/qr_code_generator.rs b/src/qr_code_generator.rs index b3b4aef11..6dbdfc249 100644 --- a/src/qr_code_generator.rs +++ b/src/qr_code_generator.rs @@ -1,3 +1,5 @@ +#![allow(missing_docs)] + use anyhow::Result; use qrcodegen::{QrCode, QrCodeEcc}; diff --git a/src/quota.rs b/src/quota.rs index 1053cd81a..eba52899f 100644 --- a/src/quota.rs +++ b/src/quota.rs @@ -1,5 +1,7 @@ //! # Support for IMAP QUOTA extension. +#![allow(missing_docs)] + use anyhow::{anyhow, Context as _, Result}; use async_imap::types::{Quota, QuotaResource}; use std::collections::BTreeMap; diff --git a/src/receive_imf.rs b/src/receive_imf.rs index d10d4bad1..b477d8686 100644 --- a/src/receive_imf.rs +++ b/src/receive_imf.rs @@ -1,5 +1,7 @@ //! Internet Message Format reception pipeline. +#![allow(missing_docs)] + use std::cmp::min; use std::collections::HashSet; use std::convert::TryFrom; diff --git a/src/scheduler/connectivity.rs b/src/scheduler/connectivity.rs index 9ca9fb263..630053864 100644 --- a/src/scheduler/connectivity.rs +++ b/src/scheduler/connectivity.rs @@ -1,3 +1,5 @@ +#![allow(missing_docs)] + use core::fmt; use std::{ops::Deref, sync::Arc}; diff --git a/src/securejoin.rs b/src/securejoin.rs index 08822a5a1..9663a30a8 100644 --- a/src/securejoin.rs +++ b/src/securejoin.rs @@ -1,5 +1,7 @@ //! Verified contact protocol implementation as [specified by countermitm project](https://countermitm.readthedocs.io/en/stable/new.html#setup-contact-protocol). +#![allow(missing_docs)] + use std::convert::TryFrom; use anyhow::{bail, Context as _, Error, Result}; diff --git a/src/sql.rs b/src/sql.rs index 4dacb5daf..bed7f0063 100644 --- a/src/sql.rs +++ b/src/sql.rs @@ -1,5 +1,7 @@ //! # SQLite wrapper. +#![allow(missing_docs)] + use std::collections::{HashMap, HashSet}; use std::convert::TryFrom; use std::path::Path; diff --git a/src/stock_str.rs b/src/stock_str.rs index e58de954d..2e93962d6 100644 --- a/src/stock_str.rs +++ b/src/stock_str.rs @@ -1,5 +1,7 @@ //! Module to work with translatable stock strings. +#![allow(missing_docs)] + use std::collections::HashMap; use std::sync::Arc; diff --git a/src/summary.rs b/src/summary.rs index 5f6a0537a..cbf301ed7 100644 --- a/src/summary.rs +++ b/src/summary.rs @@ -1,5 +1,7 @@ //! # Message summary for chatlist. +#![allow(missing_docs)] + use crate::chat::Chat; use crate::constants::Chattype; use crate::contact::{Contact, ContactId}; diff --git a/src/tools.rs b/src/tools.rs index ed04bc25a..f5500369e 100644 --- a/src/tools.rs +++ b/src/tools.rs @@ -1,6 +1,8 @@ //! Some tools and enhancements to the used libraries, there should be //! no references to Context and other "larger" entities here. +#![allow(missing_docs)] + use core::cmp::{max, min}; use std::borrow::Cow; use std::fmt; diff --git a/src/webxdc.rs b/src/webxdc.rs index a4f185900..7d4bb4d03 100644 --- a/src/webxdc.rs +++ b/src/webxdc.rs @@ -1,5 +1,7 @@ //! # Handle webxdc messages. +#![allow(missing_docs)] + use std::convert::TryFrom; use std::path::Path;