diff --git a/src/shared.rs b/src/shared.rs index 2ba95b1..c086723 100644 --- a/src/shared.rs +++ b/src/shared.rs @@ -100,8 +100,13 @@ where forward! {get_host_by_name(hostname: &str, addr_type: embedded_nal::AddrType) -> embedded_nal::nb::Result} - fn get_host_by_address(&self, addr: embedded_nal::IpAddr, buf: &mut [u8]) -> Result { - self.mutex.lock(|stack| stack.get_host_by_address(addr, buf)) + fn get_host_by_address( + &self, + addr: embedded_nal::IpAddr, + buf: &mut [u8], + ) -> Result { + self.mutex + .lock(|stack| stack.get_host_by_address(addr, buf)) } }