net: fix build error on master (#4361)

This commit is contained in:
Taiki Endo 2021-12-31 19:21:23 +09:00 committed by GitHub
parent ee0e811a36
commit 0190831ec1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -378,7 +378,7 @@ impl TcpSocket {
///
/// [`set_linger`]: TcpSocket::set_linger
pub fn linger(&self) -> io::Result<Option<Duration>> {
self.inner.get_linger()
self.inner.linger()
}
/// Gets the local address of this socket.