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.
#![warn(missing_docs)]
use std::collections::BTreeMap;
use std::path::{Path, PathBuf};

View File

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

View File

@@ -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};

View File

@@ -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};

View File

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

View File

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

View File

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

View File

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

View File

@@ -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;

View File

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

View File

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

View File

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

View File

@@ -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};

View File

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

View File

@@ -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<T: rusqlite::ToSql + Send + Sync> ToSql for T {}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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;

View File

@@ -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;

View File

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

View File

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

View File

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

View File

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

View File

@@ -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;

View File

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

View File

@@ -1,3 +1,5 @@
#![allow(missing_docs)]
use core::fmt;
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).
#![allow(missing_docs)]
use std::convert::TryFrom;
use anyhow::{bail, Context as _, Error, Result};

View File

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

View File

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

View File

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

View File

@@ -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;

View File

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