Run cargo fmt on some more files.
This commit is contained in:
parent
090a16953b
commit
376ccc1c06
4 changed files with 11 additions and 22 deletions
|
|
@ -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> {}
|
||||
|
||||
|
|
|
|||
|
|
@ -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).
|
||||
|
|
|
|||
|
|
@ -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", {
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue