From eba5ea97732f1c5528088e1543c6dfe07b77c039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 24 Sep 2022 01:29:46 +0200 Subject: [PATCH] TestComponent: rename _send_stanza method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- src/component.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/component.rs b/src/component.rs index 3262387..dfd6804 100644 --- a/src/component.rs +++ b/src/component.rs @@ -211,7 +211,7 @@ impl TestComponent { .push_back(Expect::Presence(Box::new(callback), desc.into())) } - fn _send_stanza + Send>(&mut self, el: E) -> Result<(), Error> { + fn send_stanza_inner + Send>(&mut self, el: E) -> Result<(), Error> { let out: TestElement = el.into(); let expected = self.expect_buffer.pop_front(); @@ -277,13 +277,13 @@ impl Drop for TestComponent { #[async_trait] impl ComponentTrait for TestComponent { async fn send_stanza + Send>(&mut self, el: E) -> Result<(), Error> { - self._send_stanza(el.into()) + self.send_stanza_inner(el.into()) } } #[async_trait] impl ComponentTrait for &mut TestComponent { async fn send_stanza + Send>(&mut self, el: E) -> Result<(), Error> { - self._send_stanza(el.into()) + self.send_stanza_inner(el.into()) } }