Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply rustfmt fix #2210

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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