From 99036735a39ca7485972417518d9c3f7644aebb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Tue, 6 Feb 2024 01:14:50 +0100 Subject: [PATCH] xmpp: Rename ClientBuilder::new_with_server to new_with_connector MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- xmpp/src/builder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,