xmpp: Rename ClientBuilder::new_with_server to new_with_connector
Some checks failed
Build / lint (push) Has been cancelled
Build / test-stable (push) Has been cancelled
Build / test-nightly (push) Has been cancelled

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2024-02-06 01:14:50 +01:00
parent a292e19314
commit 99036735a3
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -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<C: ServerConnector> ClientBuilder<'_, C> {
pub fn new_with_server<'a>(
pub fn new_with_connector<'a>(
jid: BareJid,
password: &'a str,
server_connector: C,