Switch allow→deny(missing_docs) for the whole crate.

Emmanuel Gil Peyrot created

Change summary

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(-)

Detailed changes

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

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;
 

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;

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!(

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

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.

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;

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;

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;

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;

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

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;

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;
 

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;

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;
 

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;
 

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!(

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;

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;
 

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;
 

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!(

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;

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;
 

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;

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;

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!(

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;
 

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.

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, {

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;
 

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

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;

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!(

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;

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;
 

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.

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

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;

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;

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!(

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;
 

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!(

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,

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!(

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,