Ran formatting
This commit is contained in:
parent
36df284dca
commit
95ca1be001
5 changed files with 64 additions and 22 deletions
|
|
@ -54,7 +54,8 @@ impl<SpiBus: ActiveBus, NetworkImpl: Network> W5500<SpiBus, NetworkImpl> {
|
|||
self,
|
||||
port: u16,
|
||||
socket: &'a mut SocketImpl,
|
||||
) -> Result<UdpSocket<'a, SpiBus, NetworkImpl, SocketImpl>, OpenSocketError<SpiBus::Error>> {
|
||||
) -> Result<UdpSocket<'a, SpiBus, NetworkImpl, SocketImpl>, OpenSocketError<SpiBus::Error>>
|
||||
{
|
||||
if socket.is_owned_by(&self.sockets) {
|
||||
UdpSocket::new(port, self.bus, self.network, self.sockets, socket)
|
||||
.map_err(|e| OpenSocketError::BusError(e))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue