Apply rustfmt fix (#2210)

This commit is contained in:
Dániel Buga 2024-09-23 10:19:29 +02:00 committed by GitHub
parent 37fa662fe7
commit 3ee8fa61ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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