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`. ///