From c6f841e78c41c8c66d90e05c5e57edc7a99c47ad Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Sun, 28 Jul 2019 11:50:16 -0400 Subject: Make `dispatch_retries` private. --- usbh/src/pipe.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/usbh/src/pipe.rs b/usbh/src/pipe.rs index 56acc00..2823dbe 100644 --- a/usbh/src/pipe.rs +++ b/usbh/src/pipe.rs @@ -165,8 +165,6 @@ impl Pipe<'_, '_> { RequestDirection::HostToDevice => USBToken::In, }; - // TODO: should probably make `pipe.send` have optional - // `DataBuf`, rather than exposing `dispatch_retries`. trace!("dispatching status stage"); self.dispatch_retries(token, NAK_LIMIT, millis)?; Ok(()) @@ -292,7 +290,7 @@ impl Pipe<'_, '_> { // This is the only function that calls `millis`. If we can make // this just take the current timestamp, we can make this // non-blocking. - pub(crate) fn dispatch_retries( + fn dispatch_retries( &mut self, token: USBToken, retries: usize, -- cgit v1.2.3