diff --git a/xmpp/src/builder.rs b/xmpp/src/builder.rs index 7c8a38e5..d416a127 100644 --- a/xmpp/src/builder.rs +++ b/xmpp/src/builder.rs @@ -55,12 +55,12 @@ impl ClientBuilder<'_, tokio_xmpp::starttls::ServerConfig> { jid: BareJid, password: &'a str, ) -> ClientBuilder<'a, tokio_xmpp::starttls::ServerConfig> { - Self::new_with_server(jid, password, tokio_xmpp::starttls::ServerConfig::UseSrv) + Self::new_with_connector(jid, password, tokio_xmpp::starttls::ServerConfig::UseSrv) } } impl ClientBuilder<'_, C> { - pub fn new_with_server<'a>( + pub fn new_with_connector<'a>( jid: BareJid, password: &'a str, server_connector: C,