From 889ca75a7a54c1db05b6f7e6cdf59e138dc5b800 Mon Sep 17 00:00:00 2001 From: DoumanAsh Date: Tue, 3 Dec 2024 08:12:55 +0900 Subject: [PATCH] Convert addr family type just in case --- quiche/src/ffi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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::());