Run `cargo fmt` on some more files.

Emmanuel Gil Peyrot created

Change summary

src/presence.rs     | 12 ++++--------
src/rsm.rs          |  7 ++-----
src/sasl.rs         |  6 ++----
src/stanza_error.rs |  8 +++-----
4 files changed, 11 insertions(+), 22 deletions(-)

Detailed changes

src/presence.rs 🔗

@@ -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> {}
 

src/rsm.rs 🔗

@@ -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).

src/sasl.rs 🔗

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

src/stanza_error.rs 🔗

@@ -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.