diff --git a/esp-wifi/src/wifi/mod.rs b/esp-wifi/src/wifi/mod.rs index fe435f62aae..b4b01a60229 100644 --- a/esp-wifi/src/wifi/mod.rs +++ b/esp-wifi/src/wifi/mod.rs @@ -2273,8 +2273,14 @@ impl<'d> WifiController<'d> { // see https://docs.rs/smoltcp/0.7.1/smoltcp/phy/index.html #[cfg(feature = "smoltcp")] impl Device for WifiDevice<'_, MODE> { - type RxToken<'a> = WifiRxToken where Self: 'a; - type TxToken<'a> = WifiTxToken where Self: 'a; + type RxToken<'a> + = WifiRxToken + where + Self: 'a; + type TxToken<'a> + = WifiTxToken + where + Self: 'a; fn receive( &mut self, @@ -2804,8 +2810,14 @@ pub(crate) mod embassy { } impl Driver for WifiDevice<'_, MODE> { - type RxToken<'a> = WifiRxToken where Self: 'a; - type TxToken<'a> = WifiTxToken where Self: 'a; + type RxToken<'a> + = WifiRxToken + where + Self: 'a; + type TxToken<'a> + = WifiTxToken + where + Self: 'a; fn receive( &mut self,