Run cargo fmt.
This commit is contained in:
parent
d517b8e32e
commit
efd7bd5f2f
51 changed files with 2276 additions and 1324 deletions
|
|
@ -72,8 +72,8 @@ impl Open {
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use try_from::TryFrom;
|
||||
use minidom::Element;
|
||||
use try_from::TryFrom;
|
||||
|
||||
#[cfg(target_pointer_width = "32")]
|
||||
#[test]
|
||||
|
|
@ -89,7 +89,9 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn test_simple() {
|
||||
let elem: Element = "<open xmlns='urn:ietf:params:xml:ns:xmpp-framing'/>".parse().unwrap();
|
||||
let elem: Element = "<open xmlns='urn:ietf:params:xml:ns:xmpp-framing'/>"
|
||||
.parse()
|
||||
.unwrap();
|
||||
let open = Open::try_from(elem).unwrap();
|
||||
assert_eq!(open.from, None);
|
||||
assert_eq!(open.to, None);
|
||||
|
|
|
|||
Loading…
Reference in a new issue