diff --git a/quiche/src/ffi.rs b/quiche/src/ffi.rs index dd6cee6a6a..a4212b0e27 100644 --- a/quiche/src/ffi.rs +++ b/quiche/src/ffi.rs @@ -1840,7 +1840,7 @@ fn optional_std_addr_from_c( } fn std_addr_from_c(addr: &sockaddr, addr_len: socklen_t) -> SocketAddr { - match addr.sa_family { + match addr.sa_family as _ { AF_INET => { assert!(addr_len as usize == std::mem::size_of::());