diff --git a/embassy-net/src/tcp.rs b/embassy-net/src/tcp.rs index 814e7ab6..2e276ecd 100644 --- a/embassy-net/src/tcp.rs +++ b/embassy-net/src/tcp.rs @@ -389,10 +389,7 @@ pub mod client { } impl<'d, const N: usize, const TX_SZ: usize, const RX_SZ: usize> TcpConnection<'d, N, TX_SZ, RX_SZ> { - fn new( - stack: &'d Stack, - state: &'d TcpClientState, - ) -> Result { + fn new(stack: &'d Stack, state: &'d TcpClientState) -> Result { let mut bufs = state.pool.alloc().ok_or(Error::ConnectionReset)?; Ok(Self { socket: unsafe { TcpSocket::new(stack, &mut bufs.as_mut().0, &mut bufs.as_mut().1) }, @@ -456,9 +453,7 @@ pub mod client { impl TcpClientState { pub const fn new() -> Self { - Self { - pool: Pool::new() - } + Self { pool: Pool::new() } } }