Do not allow missing documentation by default

This commit is contained in:
link2xt
2022-12-13 14:47:41 +00:00
parent ccd0842df8
commit 2cd63234c1
35 changed files with 71 additions and 2 deletions

View File

@@ -1,7 +1,5 @@
//! # Account manager module. //! # Account manager module.
#![warn(missing_docs)]
use std::collections::BTreeMap; use std::collections::BTreeMap;
use std::path::{Path, PathBuf}; use std::path::{Path, PathBuf};

View File

@@ -1,5 +1,7 @@
//! # Chat module. //! # Chat module.
#![allow(missing_docs)]
use std::collections::HashMap; use std::collections::HashMap;
use std::convert::{TryFrom, TryInto}; use std::convert::{TryFrom, TryInto};
use std::fmt; use std::fmt;

View File

@@ -1,5 +1,7 @@
//! # Chat list module. //! # Chat list module.
#![allow(missing_docs)]
use anyhow::{ensure, Context as _, Result}; use anyhow::{ensure, Context as _, Result};
use crate::chat::{update_special_chat_names, Chat, ChatId, ChatVisibility}; use crate::chat::{update_special_chat_names, Chat, ChatId, ChatVisibility};

View File

@@ -1,5 +1,7 @@
//! # Key-value configuration management. //! # Key-value configuration management.
#![allow(missing_docs)]
use anyhow::{ensure, Context as _, Result}; use anyhow::{ensure, Context as _, Result};
use strum::{EnumProperty as EnumPropertyTrait, IntoEnumIterator}; use strum::{EnumProperty as EnumPropertyTrait, IntoEnumIterator};
use strum_macros::{AsRefStr, Display, EnumIter, EnumProperty, EnumString}; use strum_macros::{AsRefStr, Display, EnumIter, EnumProperty, EnumString};

View File

@@ -1,4 +1,7 @@
//! # Constants. //! # Constants.
#![allow(missing_docs)]
use deltachat_derive::{FromSql, ToSql}; use deltachat_derive::{FromSql, ToSql};
use once_cell::sync::Lazy; use once_cell::sync::Lazy;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};

View File

@@ -1,5 +1,7 @@
//! Contacts module //! Contacts module
#![allow(missing_docs)]
use std::cmp::Reverse; use std::cmp::Reverse;
use std::collections::BinaryHeap; use std::collections::BinaryHeap;
use std::convert::{TryFrom, TryInto}; use std::convert::{TryFrom, TryInto};

View File

@@ -1,5 +1,7 @@
//! Context module. //! Context module.
#![allow(missing_docs)]
use std::collections::{BTreeMap, HashMap}; use std::collections::{BTreeMap, HashMap};
use std::ffi::OsString; use std::ffi::OsString;
use std::ops::Deref; use std::ops::Deref;

View File

@@ -1,5 +1,7 @@
//! # Download large messages manually. //! # Download large messages manually.
#![allow(missing_docs)]
use anyhow::{anyhow, Result}; use anyhow::{anyhow, Result};
use deltachat_derive::{FromSql, ToSql}; use deltachat_derive::{FromSql, ToSql};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};

View File

@@ -62,6 +62,8 @@
//! the database entries which are expired either according to their //! the database entries which are expired either according to their
//! ephemeral message timers or global `delete_server_after` setting. //! ephemeral message timers or global `delete_server_after` setting.
#![allow(missing_docs)]
use std::convert::{TryFrom, TryInto}; use std::convert::{TryFrom, TryInto};
use std::num::ParseIntError; use std::num::ParseIntError;
use std::str::FromStr; use std::str::FromStr;

View File

@@ -1,5 +1,7 @@
//! # Events specification. //! # Events specification.
#![allow(missing_docs)]
use std::path::PathBuf; use std::path::PathBuf;
use async_channel::{self as channel, Receiver, Sender, TrySendError}; use async_channel::{self as channel, Receiver, Sender, TrySendError};

View File

@@ -1,5 +1,7 @@
//! # List of email headers. //! # List of email headers.
#![allow(missing_docs)]
use mailparse::{MailHeader, MailHeaderMap}; use mailparse::{MailHeader, MailHeaderMap};
#[derive(Debug, Display, Clone, PartialEq, Eq, EnumVariantNames, IntoStaticStr)] #[derive(Debug, Display, Clone, PartialEq, Eq, EnumVariantNames, IntoStaticStr)]

View File

@@ -1,5 +1,7 @@
//! # Import/export module. //! # Import/export module.
#![allow(missing_docs)]
use std::any::Any; use std::any::Any;
use std::ffi::OsStr; use std::ffi::OsStr;
use std::path::{Path, PathBuf}; use std::path::{Path, PathBuf};

View File

@@ -2,6 +2,9 @@
//! //!
//! This module implements a job queue maintained in the SQLite database //! This module implements a job queue maintained in the SQLite database
//! and job types. //! and job types.
#![allow(missing_docs)]
use std::fmt; use std::fmt;
use anyhow::{Context as _, Result}; use anyhow::{Context as _, Result};

View File

@@ -1,5 +1,7 @@
//! Cryptographic key module. //! Cryptographic key module.
#![allow(missing_docs)]
use std::collections::BTreeMap; use std::collections::BTreeMap;
use std::fmt; use std::fmt;
use std::io::Cursor; use std::io::Cursor;

View File

@@ -6,6 +6,7 @@
unused, unused,
clippy::correctness, clippy::correctness,
missing_debug_implementations, missing_debug_implementations,
missing_docs,
clippy::all, clippy::all,
clippy::indexing_slicing, clippy::indexing_slicing,
clippy::wildcard_imports, clippy::wildcard_imports,
@@ -34,6 +35,7 @@ extern crate rusqlite;
#[macro_use] #[macro_use]
extern crate strum_macros; extern crate strum_macros;
#[allow(missing_docs)]
pub trait ToSql: rusqlite::ToSql + Send + Sync {} pub trait ToSql: rusqlite::ToSql + Send + Sync {}
impl<T: rusqlite::ToSql + Send + Sync> ToSql for T {} impl<T: rusqlite::ToSql + Send + Sync> ToSql for T {}

View File

@@ -1,4 +1,7 @@
//! Location handling. //! Location handling.
#![allow(missing_docs)]
use std::convert::TryFrom; use std::convert::TryFrom;
use std::time::Duration; use std::time::Duration;

View File

@@ -1,5 +1,7 @@
//! # Logging. //! # Logging.
#![allow(missing_docs)]
use crate::context::Context; use crate::context::Context;
#[macro_export] #[macro_export]

View File

@@ -1,5 +1,7 @@
//! # Messages and their identifiers. //! # Messages and their identifiers.
#![allow(missing_docs)]
use std::collections::BTreeSet; use std::collections::BTreeSet;
use std::path::{Path, PathBuf}; use std::path::{Path, PathBuf};

View File

@@ -1,5 +1,7 @@
//! # MIME message parsing module. //! # MIME message parsing module.
#![allow(missing_docs)]
use std::collections::{HashMap, HashSet}; use std::collections::{HashMap, HashSet};
use std::future::Future; use std::future::Future;
use std::pin::Pin; use std::pin::Pin;

View File

@@ -1,5 +1,7 @@
//! OAuth 2 module. //! OAuth 2 module.
#![allow(missing_docs)]
use std::collections::HashMap; use std::collections::HashMap;
use anyhow::Result; use anyhow::Result;

View File

@@ -1,5 +1,7 @@
//! # [Autocrypt Peer State](https://autocrypt.org/level1.html#peer-state-management) module. //! # [Autocrypt Peer State](https://autocrypt.org/level1.html#peer-state-management) module.
#![allow(missing_docs)]
use std::collections::HashSet; use std::collections::HashSet;
use std::fmt; use std::fmt;

View File

@@ -1,5 +1,7 @@
//! OpenPGP helper module using [rPGP facilities](https://github.com/rpgp/rpgp). //! OpenPGP helper module using [rPGP facilities](https://github.com/rpgp/rpgp).
#![allow(missing_docs)]
use std::collections::{BTreeMap, HashSet}; use std::collections::{BTreeMap, HashSet};
use std::io; use std::io;
use std::io::Cursor; use std::io::Cursor;

View File

@@ -1,5 +1,7 @@
//! Handle plain text together with some attributes. //! Handle plain text together with some attributes.
#![allow(missing_docs)]
use crate::simplify::split_lines; use crate::simplify::split_lines;
use once_cell::sync::Lazy; use once_cell::sync::Lazy;

View File

@@ -1,5 +1,7 @@
//! [Provider database](https://providers.delta.chat/) module. //! [Provider database](https://providers.delta.chat/) module.
#![allow(missing_docs)]
mod data; mod data;
use crate::config::Config; use crate::config::Config;

View File

@@ -1,5 +1,7 @@
//! # QR code module. //! # QR code module.
#![allow(missing_docs)]
mod dclogin_scheme; mod dclogin_scheme;
pub use dclogin_scheme::LoginOptions; pub use dclogin_scheme::LoginOptions;

View File

@@ -1,3 +1,5 @@
#![allow(missing_docs)]
use anyhow::Result; use anyhow::Result;
use qrcodegen::{QrCode, QrCodeEcc}; use qrcodegen::{QrCode, QrCodeEcc};

View File

@@ -1,5 +1,7 @@
//! # Support for IMAP QUOTA extension. //! # Support for IMAP QUOTA extension.
#![allow(missing_docs)]
use anyhow::{anyhow, Context as _, Result}; use anyhow::{anyhow, Context as _, Result};
use async_imap::types::{Quota, QuotaResource}; use async_imap::types::{Quota, QuotaResource};
use std::collections::BTreeMap; use std::collections::BTreeMap;

View File

@@ -1,5 +1,7 @@
//! Internet Message Format reception pipeline. //! Internet Message Format reception pipeline.
#![allow(missing_docs)]
use std::cmp::min; use std::cmp::min;
use std::collections::HashSet; use std::collections::HashSet;
use std::convert::TryFrom; use std::convert::TryFrom;

View File

@@ -1,3 +1,5 @@
#![allow(missing_docs)]
use core::fmt; use core::fmt;
use std::{ops::Deref, sync::Arc}; use std::{ops::Deref, sync::Arc};

View File

@@ -1,5 +1,7 @@
//! Verified contact protocol implementation as [specified by countermitm project](https://countermitm.readthedocs.io/en/stable/new.html#setup-contact-protocol). //! 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 std::convert::TryFrom;
use anyhow::{bail, Context as _, Error, Result}; use anyhow::{bail, Context as _, Error, Result};

View File

@@ -1,5 +1,7 @@
//! # SQLite wrapper. //! # SQLite wrapper.
#![allow(missing_docs)]
use std::collections::{HashMap, HashSet}; use std::collections::{HashMap, HashSet};
use std::convert::TryFrom; use std::convert::TryFrom;
use std::path::Path; use std::path::Path;

View File

@@ -1,5 +1,7 @@
//! Module to work with translatable stock strings. //! Module to work with translatable stock strings.
#![allow(missing_docs)]
use std::collections::HashMap; use std::collections::HashMap;
use std::sync::Arc; use std::sync::Arc;

View File

@@ -1,5 +1,7 @@
//! # Message summary for chatlist. //! # Message summary for chatlist.
#![allow(missing_docs)]
use crate::chat::Chat; use crate::chat::Chat;
use crate::constants::Chattype; use crate::constants::Chattype;
use crate::contact::{Contact, ContactId}; use crate::contact::{Contact, ContactId};

View File

@@ -1,6 +1,8 @@
//! Some tools and enhancements to the used libraries, there should be //! Some tools and enhancements to the used libraries, there should be
//! no references to Context and other "larger" entities here. //! no references to Context and other "larger" entities here.
#![allow(missing_docs)]
use core::cmp::{max, min}; use core::cmp::{max, min};
use std::borrow::Cow; use std::borrow::Cow;
use std::fmt; use std::fmt;

View File

@@ -1,5 +1,7 @@
//! # Handle webxdc messages. //! # Handle webxdc messages.
#![allow(missing_docs)]
use std::convert::TryFrom; use std::convert::TryFrom;
use std::path::Path; use std::path::Path;