From 7f12d05fd2e4b175c7a533703746d6d7bc8f9333 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 8 Aug 2018 18:48:05 +0200 Subject: [PATCH] =?UTF-8?q?Switch=20allow=E2=86=92deny(missing=5Fdocs)=20f?= =?UTF-8?q?or=20the=20whole=20crate.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/attention.rs | 2 -- src/bind.rs | 2 ++ src/blocking.rs | 2 -- src/bookmarks.rs | 2 -- src/caps.rs | 2 ++ src/chatstates.rs | 2 -- src/component.rs | 2 -- src/data_forms.rs | 2 ++ src/delay.rs | 2 -- src/disco.rs | 2 -- src/ecaps2.rs | 2 -- src/error.rs | 2 -- src/forwarding.rs | 2 -- src/hashes.rs | 2 ++ src/ibb.rs | 2 -- src/ibr.rs | 2 ++ src/idle.rs | 2 -- src/iq.rs | 2 ++ src/jingle.rs | 2 ++ src/jingle_ft.rs | 2 ++ src/jingle_ibb.rs | 2 -- src/jingle_message.rs | 2 ++ src/jingle_s5b.rs | 2 ++ src/lib.rs | 2 ++ src/mam.rs | 2 -- src/media_element.rs | 2 -- src/message.rs | 2 ++ src/message_correct.rs | 2 -- src/mood.rs | 2 -- src/muc/mod.rs | 2 ++ src/nick.rs | 2 -- src/ns.rs | 5 +++++ src/ping.rs | 2 -- src/presence.rs | 2 ++ src/pubsub/mod.rs | 2 -- src/receipts.rs | 2 -- src/roster.rs | 2 -- src/rsm.rs | 2 -- src/sasl.rs | 2 -- src/sm.rs | 2 ++ src/stanza_error.rs | 2 ++ src/stanza_id.rs | 2 -- src/stream.rs | 2 ++ src/version.rs | 2 -- src/websocket.rs | 2 ++ 45 files changed, 41 insertions(+), 52 deletions(-) diff --git a/src/attention.rs b/src/attention.rs index 59f8aa7a..7b4226fb 100644 --- a/src/attention.rs +++ b/src/attention.rs @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#![deny(missing_docs)] - generate_empty_element!( /// Requests the attention of the recipient. Attention, "attention", ATTENTION diff --git a/src/bind.rs b/src/bind.rs index 97a75aa3..7329ed61 100644 --- a/src/bind.rs +++ b/src/bind.rs @@ -4,6 +4,8 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +#![allow(missing_docs)] + use std::str::FromStr; use try_from::TryFrom; diff --git a/src/blocking.rs b/src/blocking.rs index 889b7c7e..6b6894c9 100644 --- a/src/blocking.rs +++ b/src/blocking.rs @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#![deny(missing_docs)] - use try_from::TryFrom; use jid::Jid; diff --git a/src/bookmarks.rs b/src/bookmarks.rs index 26893c5a..11b4a421 100644 --- a/src/bookmarks.rs +++ b/src/bookmarks.rs @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#![deny(missing_docs)] - use jid::Jid; generate_attribute!( diff --git a/src/caps.rs b/src/caps.rs index cfafef7e..bf063151 100644 --- a/src/caps.rs +++ b/src/caps.rs @@ -4,6 +4,8 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +#![allow(missing_docs)] + use try_from::TryFrom; use disco::{Feature, Identity, DiscoInfoResult, DiscoInfoQuery}; diff --git a/src/chatstates.rs b/src/chatstates.rs index d341975f..339ed2b5 100644 --- a/src/chatstates.rs +++ b/src/chatstates.rs @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#![deny(missing_docs)] - generate_element_enum!( /// Enum representing chatstate elements part of the /// `http://jabber.org/protocol/chatstates` namespace. diff --git a/src/component.rs b/src/component.rs index 31c54d4f..27229f25 100644 --- a/src/component.rs +++ b/src/component.rs @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#![deny(missing_docs)] - use helpers::PlainText; use sha1::Sha1; use digest::Digest; diff --git a/src/data_forms.rs b/src/data_forms.rs index 2a249c28..c895e488 100644 --- a/src/data_forms.rs +++ b/src/data_forms.rs @@ -4,6 +4,8 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +#![allow(missing_docs)] + use try_from::TryFrom; use minidom::Element; diff --git a/src/delay.rs b/src/delay.rs index 0437ea11..21450da0 100644 --- a/src/delay.rs +++ b/src/delay.rs @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#![deny(missing_docs)] - use date::DateTime; use jid::Jid; diff --git a/src/disco.rs b/src/disco.rs index b6b653c5..59166eb8 100644 --- a/src/disco.rs +++ b/src/disco.rs @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#![deny(missing_docs)] - use try_from::TryFrom; use minidom::Element; diff --git a/src/ecaps2.rs b/src/ecaps2.rs index 975c08d3..4e40484d 100644 --- a/src/ecaps2.rs +++ b/src/ecaps2.rs @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#![deny(missing_docs)] - use disco::{Feature, Identity, DiscoInfoResult, DiscoInfoQuery}; use data_forms::DataForm; use hashes::{Hash, Algo}; diff --git a/src/error.rs b/src/error.rs index 05d1ff7a..36bd0347 100644 --- a/src/error.rs +++ b/src/error.rs @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#![deny(missing_docs)] - use std::convert::From; use std::num; use std::string; diff --git a/src/forwarding.rs b/src/forwarding.rs index faf669ee..b65b4503 100644 --- a/src/forwarding.rs +++ b/src/forwarding.rs @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#[deny(missing_docs)] - use delay::Delay; use message::Message; diff --git a/src/hashes.rs b/src/hashes.rs index eb5a5368..e342e3d4 100644 --- a/src/hashes.rs +++ b/src/hashes.rs @@ -4,6 +4,8 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +#![allow(missing_docs)] + use std::str::FromStr; use minidom::IntoAttributeValue; diff --git a/src/ibb.rs b/src/ibb.rs index da4f9256..bede2f0b 100644 --- a/src/ibb.rs +++ b/src/ibb.rs @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#![deny(missing_docs)] - use helpers::Base64; use iq::IqSetPayload; diff --git a/src/ibr.rs b/src/ibr.rs index 6964755c..750b3e28 100644 --- a/src/ibr.rs +++ b/src/ibr.rs @@ -4,6 +4,8 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +#![allow(missing_docs)] + use std::collections::HashMap; use try_from::TryFrom; diff --git a/src/idle.rs b/src/idle.rs index e8fb05bc..f96dadb5 100644 --- a/src/idle.rs +++ b/src/idle.rs @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#![deny(missing_docs)] - use date::DateTime; generate_element!( diff --git a/src/iq.rs b/src/iq.rs index e695dc3e..49bdc9b7 100644 --- a/src/iq.rs +++ b/src/iq.rs @@ -5,6 +5,8 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +#![allow(missing_docs)] + use try_from::TryFrom; use minidom::Element; diff --git a/src/jingle.rs b/src/jingle.rs index 1600fed1..264aa182 100644 --- a/src/jingle.rs +++ b/src/jingle.rs @@ -4,6 +4,8 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +#![allow(missing_docs)] + use try_from::TryFrom; use std::str::FromStr; diff --git a/src/jingle_ft.rs b/src/jingle_ft.rs index 4cb0fa52..75656e50 100644 --- a/src/jingle_ft.rs +++ b/src/jingle_ft.rs @@ -4,6 +4,8 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +#![allow(missing_docs)] + use try_from::TryFrom; use std::str::FromStr; diff --git a/src/jingle_ibb.rs b/src/jingle_ibb.rs index a36f0618..7438133c 100644 --- a/src/jingle_ibb.rs +++ b/src/jingle_ibb.rs @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#![deny(missing_docs)] - use ibb::{Stanza, StreamId}; generate_element!( diff --git a/src/jingle_message.rs b/src/jingle_message.rs index 268d93a4..9d477a69 100644 --- a/src/jingle_message.rs +++ b/src/jingle_message.rs @@ -4,6 +4,8 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +#![allow(missing_docs)] + use try_from::TryFrom; use minidom::Element; diff --git a/src/jingle_s5b.rs b/src/jingle_s5b.rs index 7456ff87..92627d3b 100644 --- a/src/jingle_s5b.rs +++ b/src/jingle_s5b.rs @@ -4,6 +4,8 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +#![allow(missing_docs)] + use try_from::TryFrom; use std::net::IpAddr; diff --git a/src/lib.rs b/src/lib.rs index 82094267..54994e19 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -22,6 +22,8 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +#![deny(missing_docs)] + extern crate minidom; extern crate jid; extern crate base64; diff --git a/src/mam.rs b/src/mam.rs index efc62135..ad4eb92e 100644 --- a/src/mam.rs +++ b/src/mam.rs @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#![deny(missing_docs)] - use try_from::TryFrom; use minidom::Element; diff --git a/src/media_element.rs b/src/media_element.rs index 52a45b5c..7ad264b2 100644 --- a/src/media_element.rs +++ b/src/media_element.rs @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#![deny(missing_docs)] - use helpers::TrimmedPlainText; generate_element!( diff --git a/src/message.rs b/src/message.rs index f103ba8e..f19911ea 100644 --- a/src/message.rs +++ b/src/message.rs @@ -4,6 +4,8 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +#![allow(missing_docs)] + use try_from::TryFrom; use std::collections::BTreeMap; diff --git a/src/message_correct.rs b/src/message_correct.rs index 3dbd5120..6ff06bc3 100644 --- a/src/message_correct.rs +++ b/src/message_correct.rs @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#![deny(missing_docs)] - generate_element!( /// Defines that the message containing this payload should replace a /// previous message, identified by the id. diff --git a/src/mood.rs b/src/mood.rs index b8a3ef90..8612a42c 100644 --- a/src/mood.rs +++ b/src/mood.rs @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#![deny(missing_docs)] - generate_element_enum!( /// Enum representing all of the possible values of the XEP-0107 moods. MoodEnum, "mood", MOOD, { diff --git a/src/muc/mod.rs b/src/muc/mod.rs index 80d61d88..77b59ade 100644 --- a/src/muc/mod.rs +++ b/src/muc/mod.rs @@ -4,6 +4,8 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +#![allow(missing_docs)] + pub mod muc; pub mod user; diff --git a/src/nick.rs b/src/nick.rs index 2f13b6c6..9844e931 100644 --- a/src/nick.rs +++ b/src/nick.rs @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#![deny(missing_docs)] - generate_elem_id!( /// Represents a global, memorable, friendly or informal name chosen by a user. Nick, "nick", NICK diff --git a/src/ns.rs b/src/ns.rs index b561e56f..658428f9 100644 --- a/src/ns.rs +++ b/src/ns.rs @@ -155,7 +155,12 @@ pub const ECAPS2: &str = "urn:xmpp:caps"; /// XEP-0390: Entity Capabilities 2.0 pub const ECAPS2_OPTIMIZE: &str = "urn:xmpp:caps:optimize"; +/// Alias for the main namespace of the stream, that is "jabber:client" when +/// the component feature isn’t enabled. #[cfg(not(feature = "component"))] pub const DEFAULT_NS: &str = JABBER_CLIENT; + +/// Alias for the main namespace of the stream, that is +/// "jabber:component:accept" when the component feature is enabled. #[cfg(feature = "component")] pub const DEFAULT_NS: &str = COMPONENT_ACCEPT; diff --git a/src/ping.rs b/src/ping.rs index 845ec189..0af81c0d 100644 --- a/src/ping.rs +++ b/src/ping.rs @@ -5,8 +5,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#![deny(missing_docs)] - use iq::IqGetPayload; generate_empty_element!( diff --git a/src/presence.rs b/src/presence.rs index 9eba1987..639bf046 100644 --- a/src/presence.rs +++ b/src/presence.rs @@ -5,6 +5,8 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +#![allow(missing_docs)] + use try_from::TryFrom; use std::str::FromStr; use std::collections::BTreeMap; diff --git a/src/pubsub/mod.rs b/src/pubsub/mod.rs index 5cf00d5c..a8af5c5a 100644 --- a/src/pubsub/mod.rs +++ b/src/pubsub/mod.rs @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -//#![deny(missing_docs)] - /// The `http://jabber.org/protocol/pubsub#event` protocol. pub mod event; diff --git a/src/receipts.rs b/src/receipts.rs index 9b287a6e..10c0e51c 100644 --- a/src/receipts.rs +++ b/src/receipts.rs @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#![deny(missing_docs)] - generate_empty_element!( /// Requests that this message is acked by the final recipient once /// received. diff --git a/src/roster.rs b/src/roster.rs index 66a61882..0bb74393 100644 --- a/src/roster.rs +++ b/src/roster.rs @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#![deny(missing_docs)] - use jid::Jid; use iq::{IqGetPayload, IqSetPayload, IqResultPayload}; diff --git a/src/rsm.rs b/src/rsm.rs index f44acc43..d16751a1 100644 --- a/src/rsm.rs +++ b/src/rsm.rs @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#![deny(missing_docs)] - use try_from::TryFrom; use minidom::Element; diff --git a/src/sasl.rs b/src/sasl.rs index 495f49e9..f27167b1 100644 --- a/src/sasl.rs +++ b/src/sasl.rs @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#![deny(missing_docs)] - use std::collections::BTreeMap; use try_from::TryFrom; diff --git a/src/sm.rs b/src/sm.rs index 20e9fc61..1fb2b946 100644 --- a/src/sm.rs +++ b/src/sm.rs @@ -4,6 +4,8 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +#![allow(missing_docs)] + use stanza_error::DefinedCondition; generate_element!( diff --git a/src/stanza_error.rs b/src/stanza_error.rs index 46496c91..85396cac 100644 --- a/src/stanza_error.rs +++ b/src/stanza_error.rs @@ -4,6 +4,8 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +#![allow(missing_docs)] + use try_from::TryFrom; use std::collections::BTreeMap; diff --git a/src/stanza_id.rs b/src/stanza_id.rs index dc626888..07815107 100644 --- a/src/stanza_id.rs +++ b/src/stanza_id.rs @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#![deny(missing_docs)] - use jid::Jid; generate_element!( diff --git a/src/stream.rs b/src/stream.rs index aa48ad9f..019a873f 100644 --- a/src/stream.rs +++ b/src/stream.rs @@ -4,6 +4,8 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +#![allow(missing_docs)] + use jid::Jid; generate_element!(Stream, "stream", STREAM, diff --git a/src/version.rs b/src/version.rs index 02979f3a..4354df50 100644 --- a/src/version.rs +++ b/src/version.rs @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#![deny(missing_docs)] - use iq::{IqGetPayload, IqResultPayload}; generate_empty_element!( diff --git a/src/websocket.rs b/src/websocket.rs index 78d0cada..2f99e317 100644 --- a/src/websocket.rs +++ b/src/websocket.rs @@ -4,6 +4,8 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +#![allow(missing_docs)] + use jid::Jid; generate_element!(Open, "open", WEBSOCKET,