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()) } }