You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@asyncband.apache.org by ti...@apache.org on 2026/10/03 06:36:50 UTC

(asyncband) 04/22: style: declare test_support::poll_once with plain pub

This is an automated email from the ASF dual-hosted git repository.

tisonkun pushed a commit to branch tison/deslopify
in repository https://gitbox.apache.org/repos/asf/asyncband.git

commit bf5d522963877bbe95dd7404fff193b251cf20a7
Author: tison <wa...@gmail.com>
AuthorDate: Sat Oct 3 14:17:47 2026 +0800

    style: declare test_support::poll_once with plain pub
    
    The module itself is a private mod declaration, so crate visibility is
    already restricted at the module boundary. Repository style keeps
    restricted visibility on the boundary and plain pub on the module's
    items, the same pattern the internal module follows.
---
 asyncband/src/test_support.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/asyncband/src/test_support.rs b/asyncband/src/test_support.rs
index a450f64..4bf8441 100644
--- a/asyncband/src/test_support.rs
+++ b/asyncband/src/test_support.rs
@@ -21,6 +21,6 @@ use std::task::Context;
 use std::task::Poll;
 use std::task::Waker;
 
-pub(crate) fn poll_once<F: Future>(future: Pin<&mut F>) -> Poll<F::Output> {
+pub fn poll_once<F: Future>(future: Pin<&mut F>) -> Poll<F::Output> {
     future.poll(&mut Context::from_waker(Waker::noop()))
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@asyncband.apache.org
For additional commands, e-mail: commits-help@asyncband.apache.org