From db89823daa41ab73ec9247c1de879d9861cf936c Mon Sep 17 00:00:00 2001 From: Phoenix Kahlo Date: Fri, 20 Dec 2024 12:45:10 -0600 Subject: [PATCH] quinn: Make SendStream::poll_stopped private Previously, this method was public, but marked as `#[doc(hidden)]`. However, nothing anywhere was using it. This commit makes it private. --- quinn/src/send_stream.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/quinn/src/send_stream.rs b/quinn/src/send_stream.rs index 08e8ef4a2..faa43bde9 100644 --- a/quinn/src/send_stream.rs +++ b/quinn/src/send_stream.rs @@ -203,8 +203,7 @@ impl SendStream { Stopped { stream: self }.await } - #[doc(hidden)] - pub fn poll_stopped(&mut self, cx: &mut Context) -> Poll, StoppedError>> { + fn poll_stopped(&mut self, cx: &mut Context) -> Poll, StoppedError>> { let mut conn = self.conn.state.lock("SendStream::poll_stopped"); if self.is_0rtt {