Skip to content

Commit

Permalink
Fix formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
qwandor committed Oct 22, 2024
1 parent 2634b67 commit 56ec0da
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions examples/riscv/src/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,14 @@ impl<T: Transport> DeviceWrapper<T> {
}

impl<T: Transport> Device for DeviceWrapper<T> {
type RxToken<'a> = VirtioRxToken<T> where Self: 'a;
type TxToken<'a> = VirtioTxToken<T> where Self: 'a;
type RxToken<'a>
= VirtioRxToken<T>
where
Self: 'a;
type TxToken<'a>
= VirtioTxToken<T>
where
Self: 'a;

fn receive(&mut self, _timestamp: Instant) -> Option<(Self::RxToken<'_>, Self::TxToken<'_>)> {
match self.inner.borrow_mut().receive() {
Expand Down
10 changes: 8 additions & 2 deletions examples/x86_64/src/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,14 @@ impl<T: Transport> DeviceWrapper<T> {
}

impl<T: Transport> Device for DeviceWrapper<T> {
type RxToken<'a> = VirtioRxToken<T> where Self: 'a;
type TxToken<'a> = VirtioTxToken<T> where Self: 'a;
type RxToken<'a>
= VirtioRxToken<T>
where
Self: 'a;
type TxToken<'a>
= VirtioTxToken<T>
where
Self: 'a;

fn receive(&mut self, _timestamp: Instant) -> Option<(Self::RxToken<'_>, Self::TxToken<'_>)> {
match self.inner.borrow_mut().receive() {
Expand Down

0 comments on commit 56ec0da

Please sign in to comment.