From aeeaf6d3f71e78c750ed13f7060894342df47998 Mon Sep 17 00:00:00 2001 From: Markus Theil Date: Thu, 12 Oct 2023 16:59:09 +0200 Subject: [PATCH] more type fiddling Signed-off-by: Markus Theil --- openssl/src/x509/sbgp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openssl/src/x509/sbgp.rs b/openssl/src/x509/sbgp.rs index 3c9615e79b..013451f64e 100644 --- a/openssl/src/x509/sbgp.rs +++ b/openssl/src/x509/sbgp.rs @@ -170,8 +170,8 @@ impl IPAddressFamily { 16, ); r.push(( - Self::data_to_ip_addr(min.assume_init(), size)?, - Self::data_to_ip_addr(max.assume_init(), size)?, + Self::data_to_ip_addr(min.assume_init(), size.try_into().unwrap())?, + Self::data_to_ip_addr(max.assume_init(), size.try_into().unwrap())?, )) } }