From 28913092a60cc47ac8367062bee226daec5fcdcd Mon Sep 17 00:00:00 2001 From: Adam Simpkins Date: Thu, 21 Mar 2024 00:24:53 -0700 Subject: [PATCH] Fix a compile error when smoltcp can return more than 1 DNS result (#442) Update the WifiStack::dns_query() return type to match the type returned by smoltcp, rather than assuming the result size is always 1. --- esp-wifi/src/wifi_interface.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esp-wifi/src/wifi_interface.rs b/esp-wifi/src/wifi_interface.rs index 7247e084079..950d9fc3a91 100644 --- a/esp-wifi/src/wifi_interface.rs +++ b/esp-wifi/src/wifi_interface.rs @@ -374,7 +374,8 @@ impl<'a, MODE: WifiDeviceMode> WifiStack<'a, MODE> { &self, name: &str, query_type: DnsQueryType, - ) -> Result, WifiStackError> { + ) -> Result, WifiStackError> + { use smoltcp::socket::dns; match query_type {