diff --git a/crates/drivers/virtio/net/src/lib.rs b/crates/drivers/virtio/net/src/lib.rs index 528e90107..9cff2d8f1 100644 --- a/crates/drivers/virtio/net/src/lib.rs +++ b/crates/drivers/virtio/net/src/lib.rs @@ -52,8 +52,14 @@ impl GetNetDeviceMeta for DeviceWrapper { } impl Device for DeviceWrapper { - type RxToken<'a> = VirtioRxToken where Self: 'a; - type TxToken<'a> = VirtioTxToken where Self: 'a; + type RxToken<'a> + = VirtioRxToken + where + Self: 'a; + type TxToken<'a> + = VirtioTxToken + where + Self: 'a; fn receive(&mut self, _timestamp: Instant) -> Option<(Self::RxToken<'_>, Self::TxToken<'_>)> { match self.inner.borrow_mut().receive() { diff --git a/crates/sel4-shared-ring-buffer/smoltcp/src/lib.rs b/crates/sel4-shared-ring-buffer/smoltcp/src/lib.rs index fe3ff1328..cafac7fba 100644 --- a/crates/sel4-shared-ring-buffer/smoltcp/src/lib.rs +++ b/crates/sel4-shared-ring-buffer/smoltcp/src/lib.rs @@ -95,8 +95,18 @@ impl DeviceImpl Device for DeviceImpl { - type RxToken<'a> = RxToken where A: 'a, R: 'a, P: 'a; - type TxToken<'a> = TxToken where A: 'a, R: 'a, P: 'a; + type RxToken<'a> + = RxToken + where + A: 'a, + R: 'a, + P: 'a; + type TxToken<'a> + = TxToken + where + A: 'a, + R: 'a, + P: 'a; fn capabilities(&self) -> DeviceCapabilities { self.inner().lock().caps().clone()