Skip to content

Commit

Permalink
Fixing format
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-summers committed Apr 22, 2024
1 parent 7470da5 commit 56bc647
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,13 @@ where

forward! {get_host_by_name(hostname: &str, addr_type: embedded_nal::AddrType) -> embedded_nal::nb::Result<embedded_nal::IpAddr, Self::Error>}

fn get_host_by_address(&self, addr: embedded_nal::IpAddr, buf: &mut [u8]) -> Result<usize, Self::Error> {
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<usize, Self::Error> {
self.mutex
.lock(|stack| stack.get_host_by_address(addr, buf))
}
}

Expand Down

0 comments on commit 56bc647

Please sign in to comment.