From 12e97ea7fcfb5b17b02ed36b6ffb93dac9609f01 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Mon, 27 Apr 2026 20:27:37 +0800 Subject: [PATCH] fd monitor: hide test-only method --- src/fd_monitor.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fd_monitor.rs b/src/fd_monitor.rs index a8f1ad451..95f806967 100644 --- a/src/fd_monitor.rs +++ b/src/fd_monitor.rs @@ -135,6 +135,7 @@ pub fn post(&self) { /// If `wait` is set, wait until it is readable; this does not consume the event /// but guarantees that the next call to wait() will not block. /// Return true if readable, false if not readable, or not interrupted by a signal. + #[cfg(test)] pub fn poll(&self, wait: bool /* = false */) -> bool { let timeout = if wait { Timeout::Forever