iq, jingle_ft: Simplify item counting with Iterator::count().
This commit is contained in:
parent
2571aa7666
commit
f6f6faeb77
3 changed files with 3 additions and 3 deletions
|
|
@ -485,6 +485,6 @@ mod tests {
|
|||
presence.statuses.insert(String::from(""), status);
|
||||
let elem: Element = presence.into();
|
||||
assert!(elem.is("presence", ns::JABBER_CLIENT));
|
||||
assert!(elem.children().collect::<Vec<_>>()[0].is("status", ns::JABBER_CLIENT));
|
||||
assert!(elem.children().next().unwrap().is("status", ns::JABBER_CLIENT));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue