Update to xmpp-rs (ec72d71551) to get serde support for ResourcePart
Signed-off-by: pep <pep@bouah.net>
This commit is contained in:
parent
c29e87be03
commit
9eeca94366
3 changed files with 6 additions and 7 deletions
|
|
@ -33,8 +33,7 @@ pub struct XmppClient {
|
|||
}
|
||||
|
||||
impl XmppClient {
|
||||
pub fn new(jid: BareJid, password: &str, rooms: Vec<BareJid>, nickname: String) -> XmppClient {
|
||||
let nickname: ResourcePart = ResourcePart::new(&nickname).unwrap().into();
|
||||
pub fn new(jid: BareJid, password: &str, rooms: Vec<BareJid>, nickname: ResourcePart) -> XmppClient {
|
||||
let agent = ClientBuilder::new(jid, password)
|
||||
.set_client(ClientType::Bot, "xmpp-rs")
|
||||
.set_website("https://gitlab.com/xmpp-rs/xmpp-rs")
|
||||
|
|
|
|||
Loading…
Reference in a new issue