Skip to content

Commit 8e7d0d8

Browse files
committed
self.inner --> self.inner.as_raw()
1 parent 9dda3c7 commit 8e7d0d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/socket.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ impl Socket {
963963
#[cfg(all(feature = "all", target_os = "linux"))]
964964
pub fn ip_transparent(&self) -> io::Result<bool> {
965965
unsafe {
966-
getsockopt::<c_int>(self.inner, sys::IPPROTO_IP, libc::IP_TRANSPARENT)
966+
getsockopt::<c_int>(self.as_raw(), sys::IPPROTO_IP, libc::IP_TRANSPARENT)
967967
.map(|transparent| transparent != 0)
968968
}
969969
}
@@ -988,7 +988,7 @@ impl Socket {
988988
pub fn set_ip_transparent(&self, transparent: bool) -> io::Result<()> {
989989
unsafe {
990990
setsockopt(
991-
self.inner,
991+
self.as_raw(),
992992
sys::IPPROTO_IP,
993993
libc::IP_TRANSPARENT,
994994
transparent as c_int,

0 commit comments

Comments
 (0)