Fixing format

This commit is contained in:
Ryan Summers 2023-03-31 13:48:49 +02:00
commit f1504d284d

View file

@ -138,7 +138,10 @@ impl UdpSocket {
Ok((packet_size, remote))
}
fn socket_close<SpiBus: Bus>(&self, bus: &mut SpiBus) -> Result<(), UdpSocketError<SpiBus::Error>> {
fn socket_close<SpiBus: Bus>(
&self,
bus: &mut SpiBus,
) -> Result<(), UdpSocketError<SpiBus::Error>> {
self.socket.set_mode(bus, socketn::Protocol::Closed)?;
self.socket.command(bus, socketn::Command::Close)?;
Ok(())