Skip to content

Commit

Permalink
Apply rustfmt fix (#2210)
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani authored Sep 23, 2024
1 parent 37fa662 commit 3ee8fa6
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions esp-wifi/src/wifi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 3ee8fa6

Please sign in to comment.