diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-10-14 00:12:45 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2024-10-14 00:12:45 +0200 |
| commit | 9a45d776d870582cda3db0db233e3f5aea15d34e (patch) | |
| tree | 12f265a48ac95cef8c91b0fb2ce7443dd6328988 /embassy-net-tuntap | |
| parent | ee669ee5c57851ade034beca7cfaf81825c4c21b (diff) | |
rustfmt for new nightly.
Diffstat (limited to 'embassy-net-tuntap')
| -rw-r--r-- | embassy-net-tuntap/src/lib.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/embassy-net-tuntap/src/lib.rs b/embassy-net-tuntap/src/lib.rs index 56f55fba1..2ff23f462 100644 --- a/embassy-net-tuntap/src/lib.rs +++ b/embassy-net-tuntap/src/lib.rs | |||
| @@ -152,8 +152,14 @@ impl TunTapDevice { | |||
| 152 | } | 152 | } |
| 153 | 153 | ||
| 154 | impl Driver for TunTapDevice { | 154 | impl Driver for TunTapDevice { |
| 155 | type RxToken<'a> = RxToken where Self: 'a; | 155 | type RxToken<'a> |
| 156 | type TxToken<'a> = TxToken<'a> where Self: 'a; | 156 | = RxToken |
| 157 | where | ||
| 158 | Self: 'a; | ||
| 159 | type TxToken<'a> | ||
| 160 | = TxToken<'a> | ||
| 161 | where | ||
| 162 | Self: 'a; | ||
| 157 | 163 | ||
| 158 | fn receive(&mut self, cx: &mut Context) -> Option<(Self::RxToken<'_>, Self::TxToken<'_>)> { | 164 | fn receive(&mut self, cx: &mut Context) -> Option<(Self::RxToken<'_>, Self::TxToken<'_>)> { |
| 159 | let mut buf = vec![0; self.device.get_ref().mtu]; | 165 | let mut buf = vec![0; self.device.get_ref().mtu]; |
