Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tomDev5 committed Dec 23, 2024
1 parent cc241fa commit 8a8f3af
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
6 changes: 4 additions & 2 deletions src/phy/fault_injector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,12 @@ impl<D: Device> FaultInjector<D> {
}

impl<D: Device> Device for FaultInjector<D> {
type RxToken<'a> = RxToken<'a>
type RxToken<'a>
= RxToken<'a>
where
Self: 'a;
type TxToken<'a> = TxToken<'a, D::TxToken<'a>>
type TxToken<'a>
= TxToken<'a, D::TxToken<'a>>
where
Self: 'a;

Expand Down
6 changes: 4 additions & 2 deletions src/phy/fuzz_injector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ where
FTx: Fuzzer,
FRx: Fuzzer,
{
type RxToken<'a> = RxToken<'a, D::RxToken<'a>, FRx>
type RxToken<'a>
= RxToken<'a, D::RxToken<'a>, FRx>
where
Self: 'a;
type TxToken<'a> = TxToken<'a, D::TxToken<'a>, FTx>
type TxToken<'a>
= TxToken<'a, D::TxToken<'a>, FTx>
where
Self: 'a;

Expand Down
6 changes: 4 additions & 2 deletions src/phy/pcap_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,12 @@ impl<D: Device, S> Device for PcapWriter<D, S>
where
S: PcapSink,
{
type RxToken<'a> = RxToken<'a, D::RxToken<'a>, S>
type RxToken<'a>
= RxToken<'a, D::RxToken<'a>, S>
where
Self: 'a;
type TxToken<'a> = TxToken<'a, D::TxToken<'a>, S>
type TxToken<'a>
= TxToken<'a, D::TxToken<'a>, S>
where
Self: 'a;

Expand Down
6 changes: 4 additions & 2 deletions src/phy/raw_socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ impl RawSocket {
}

impl Device for RawSocket {
type RxToken<'a> = RxToken
type RxToken<'a>
= RxToken
where
Self: 'a;
type TxToken<'a> = TxToken
type TxToken<'a>
= TxToken
where
Self: 'a;

Expand Down
6 changes: 4 additions & 2 deletions src/phy/tracer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ impl<D: Device> Tracer<D> {
}

impl<D: Device> Device for Tracer<D> {
type RxToken<'a> = RxToken<D::RxToken<'a>>
type RxToken<'a>
= RxToken<D::RxToken<'a>>
where
Self: 'a;
type TxToken<'a> = TxToken<D::TxToken<'a>>
type TxToken<'a>
= TxToken<D::TxToken<'a>>
where
Self: 'a;

Expand Down

0 comments on commit 8a8f3af

Please sign in to comment.