From a45b3d9eab857ecccf43028f0d8b58796e5781af Mon Sep 17 00:00:00 2001 From: whitequark Date: Fri, 22 Dec 2017 13:11:11 +0000 Subject: [PATCH] TcpSocket::recv_impl should have never been public, oops. --- src/socket/tcp.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/socket/tcp.rs b/src/socket/tcp.rs index 8827e04..a5bbcf7 100644 --- a/src/socket/tcp.rs +++ b/src/socket/tcp.rs @@ -640,7 +640,7 @@ impl<'a> TcpSocket<'a> { }) } - pub fn recv_impl<'b, F, R>(&'b mut self, f: F) -> Result + fn recv_impl<'b, F, R>(&'b mut self, f: F) -> Result where F: FnOnce(&'b mut SocketBuffer<'a>) -> (usize, R) { // We may have received some data inside the initial SYN, but until the connection // is fully open we must not dequeue any data, as it may be overwritten by e.g. @@ -659,7 +659,6 @@ impl<'a> TcpSocket<'a> { Ok(result) } - /// Call `f` with the largest contiguous slice of octets in the receive buffer, /// and dequeue the amount of elements returned by `f`. ///