diff --git a/quinn/src/platform/unix.rs b/quinn/src/platform/unix.rs index 36aa0f6a0..cdf7b51a0 100644 --- a/quinn/src/platform/unix.rs +++ b/quinn/src/platform/unix.rs @@ -2,7 +2,7 @@ use std::{ io, io::IoSliceMut, mem::{self, MaybeUninit}, - net::{IpAddr, SocketAddr, SocketAddrV4, SocketAddrV6}, + net::{IpAddr, SocketAddr}, os::unix::io::AsRawFd, ptr, task::{Context, Poll}, @@ -73,16 +73,6 @@ impl UdpSocket { } fn init(io: &mio::net::UdpSocket) -> io::Result<()> { - // Safety - assert_eq!( - mem::size_of::(), - mem::size_of::() - ); - assert_eq!( - mem::size_of::(), - mem::size_of::() - ); - let mut cmsg_platform_space = 0; if cfg!(target_os = "linux") { cmsg_platform_space +=