parsers: correct cargo doc warnings

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-12-27 16:31:58 +01:00
commit afcf9fb2d0
13 changed files with 36 additions and 34 deletions

View file

@ -4,10 +4,10 @@
// 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/.
/// The http://jabber.org/protocol/muc protocol.
/// The `http://jabber.org/protocol/muc` protocol.
pub mod muc;
/// The http://jabber.org/protocol/muc#user protocol.
/// The `http://jabber.org/protocol/muc#user` protocol.
pub mod user;
pub use self::muc::Muc;

View file

@ -78,7 +78,7 @@ Status, "status", MUC_USER, "code", {
ServiceErrorKick => 333,
});
/// Optional <actor/> element used in <item/> elements inside presence stanzas of type
/// Optional \<actor/\> element used in \<item/\> elements inside presence stanzas of type
/// "unavailable" that are sent to users who are kick or banned, as well as within IQs for tracking
/// purposes. -- CHANGELOG 0.17 (2002-10-23)
///
@ -227,8 +227,8 @@ impl Item {
}
/// Set a jid for this Item
pub fn with_jid<J: Into<FullJid>>(mut self, jid: J) -> Item {
self.jid = Some(jid.into());
pub fn with_jid(mut self, jid: FullJid) -> Item {
self.jid = Some(jid);
self
}