mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-10-02 14:44:42 +00:00
Apply rustfmt fix (#2210)
This commit is contained in:
parent
37fa662fe7
commit
3ee8fa61ee
@ -2273,8 +2273,14 @@ impl<'d> WifiController<'d> {
|
|||||||
// see https://docs.rs/smoltcp/0.7.1/smoltcp/phy/index.html
|
// see https://docs.rs/smoltcp/0.7.1/smoltcp/phy/index.html
|
||||||
#[cfg(feature = "smoltcp")]
|
#[cfg(feature = "smoltcp")]
|
||||||
impl<MODE: WifiDeviceMode> Device for WifiDevice<'_, MODE> {
|
impl<MODE: WifiDeviceMode> Device for WifiDevice<'_, MODE> {
|
||||||
type RxToken<'a> = WifiRxToken<MODE> where Self: 'a;
|
type RxToken<'a>
|
||||||
type TxToken<'a> = WifiTxToken<MODE> where Self: 'a;
|
= WifiRxToken<MODE>
|
||||||
|
where
|
||||||
|
Self: 'a;
|
||||||
|
type TxToken<'a>
|
||||||
|
= WifiTxToken<MODE>
|
||||||
|
where
|
||||||
|
Self: 'a;
|
||||||
|
|
||||||
fn receive(
|
fn receive(
|
||||||
&mut self,
|
&mut self,
|
||||||
@ -2804,8 +2810,14 @@ pub(crate) mod embassy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl<MODE: WifiDeviceMode> Driver for WifiDevice<'_, MODE> {
|
impl<MODE: WifiDeviceMode> Driver for WifiDevice<'_, MODE> {
|
||||||
type RxToken<'a> = WifiRxToken<MODE> where Self: 'a;
|
type RxToken<'a>
|
||||||
type TxToken<'a> = WifiTxToken<MODE> where Self: 'a;
|
= WifiRxToken<MODE>
|
||||||
|
where
|
||||||
|
Self: 'a;
|
||||||
|
type TxToken<'a>
|
||||||
|
= WifiTxToken<MODE>
|
||||||
|
where
|
||||||
|
Self: 'a;
|
||||||
|
|
||||||
fn receive(
|
fn receive(
|
||||||
&mut self,
|
&mut self,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user