From 3ee8fa61ee515aca5fba58ecef06be07232b8870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Mon, 23 Sep 2024 10:19:29 +0200 Subject: [PATCH] Apply rustfmt fix (#2210) --- esp-wifi/src/wifi/mod.rs | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/esp-wifi/src/wifi/mod.rs b/esp-wifi/src/wifi/mod.rs index fe435f62a..b4b01a602 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,