Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Oct 5, 2024
1 parent dc427bd commit 6b133b5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/netif.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ where
T: Borrow<EspNetif>,
{
type Error = io::Error;
type Socket<'b> = UdpSocket where Self: 'b;
type Socket<'b>
= UdpSocket
where
Self: 'b;

async fn bind(&self, local: core::net::SocketAddr) -> Result<Self::Socket<'_>, Self::Error> {
Stack::new().bind(local).await
Expand Down
20 changes: 16 additions & 4 deletions src/wireless.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,10 @@ impl<'a, 'd, T> Ble for EspMatterBle<'a, 'd, T>
where
T: BluetoothModemPeripheral,
{
type Peripheral<'t> = EspBtpGattPeripheral<'a, 't, bt::Ble> where Self: 't;
type Peripheral<'t>
= EspBtpGattPeripheral<'a, 't, bt::Ble>
where
Self: 't;

async fn start(&mut self) -> Result<Self::Peripheral<'_>, Error> {
let bt = BtDriver::new(&mut self.modem, Some(self.nvs.clone())).unwrap();
Expand Down Expand Up @@ -297,7 +300,10 @@ impl<'a> NetifRun for EspWifiSplit<'a> {

impl<'a> UdpBind for EspWifiSplit<'a> {
type Error = io::Error;
type Socket<'b> = UdpSocket where Self: 'b;
type Socket<'b>
= UdpSocket
where
Self: 'b;

async fn bind(&self, local: core::net::SocketAddr) -> Result<Self::Socket<'_>, Self::Error> {
Stack::new().bind(local).await
Expand Down Expand Up @@ -340,9 +346,15 @@ where
{
type Data = WifiData;

type Netif<'a> = EspWifiSplit<'a> where Self: 'a;
type Netif<'a>
= EspWifiSplit<'a>
where
Self: 'a;

type Controller<'a> = SvcWifiController<EspWifiSplit<'a>> where Self: 'a;
type Controller<'a>
= SvcWifiController<EspWifiSplit<'a>>
where
Self: 'a;

async fn start(&mut self) -> Result<(Self::Netif<'_>, Self::Controller<'_>), Error> {
let wifi = Arc::new(Mutex::new(
Expand Down

0 comments on commit 6b133b5

Please sign in to comment.