Run cargo fmt on some more files.

This commit is contained in:
Emmanuel Gil Peyrot 2018-12-18 16:07:46 +01:00
commit 376ccc1c06
4 changed files with 11 additions and 22 deletions

View file

@ -5,18 +5,14 @@
// 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/.
use crate::error::Error;
use crate::ns;
use jid::Jid;
use minidom::{Element, ElementEmitter, IntoAttributeValue, IntoElements};
use std::collections::BTreeMap;
use std::str::FromStr;
use try_from::TryFrom;
use minidom::{Element, ElementEmitter, IntoAttributeValue, IntoElements};
use jid::Jid;
use crate::error::Error;
use crate::ns;
/// Should be implemented on every known payload of a `<presence/>`.
pub trait PresencePayload: TryFrom<Element> + Into<Element> {}

View file

@ -4,13 +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/.
use try_from::TryFrom;
use minidom::Element;
use crate::error::Error;
use crate::ns;
use minidom::Element;
use try_from::TryFrom;
/// Requests paging through a potentially big set of items (represented by an
/// UID).

View file

@ -4,15 +4,13 @@
// 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/.
use std::collections::BTreeMap;
use crate::error::Error;
use crate::helpers::Base64;
use crate::ns;
use minidom::Element;
use std::collections::BTreeMap;
use try_from::TryFrom;
use crate::helpers::Base64;
generate_attribute!(
/// The list of available SASL mechanisms.
Mechanism, "mechanism", {

View file

@ -4,16 +4,14 @@
// 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/.
use std::collections::BTreeMap;
use try_from::TryFrom;
use minidom::Element;
use crate::error::Error;
use crate::message::MessagePayload;
use crate::ns;
use crate::presence::PresencePayload;
use jid::Jid;
use minidom::Element;
use std::collections::BTreeMap;
use try_from::TryFrom;
generate_attribute!(
/// The type of the error.