mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
fix tests on rust 1.14
This commit is contained in:
parent
6f64f9cd48
commit
a94c66cabc
1 changed files with 2 additions and 0 deletions
|
@ -150,6 +150,8 @@ impl Jid {
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
|
use std::str::FromStr;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn can_parse_jids() {
|
fn can_parse_jids() {
|
||||||
assert_eq!(Jid::from_str("a@b.c/d"), Ok(Jid::full("a", "b.c", "d")));
|
assert_eq!(Jid::from_str("a@b.c/d"), Ok(Jid::full("a", "b.c", "d")));
|
||||||
|
|
Loading…
Reference in a new issue