Skip to content

Commit

Permalink
Hide pretty-printer behind std feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Molzer committed Feb 20, 2024
1 parent af71366 commit b81ade5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ethox/src/layer/eth/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ impl<P: Payload> Recv<P> for Formatter<ethernet::frame> {
}
}

#[cfg(feature = "std")]
impl<P: Payload, I> Recv<P> for pretty_print::FormatWith<I, ethernet::frame>
where I: Recv<P>
{
Expand All @@ -71,6 +72,7 @@ impl<P: Payload, I> Recv<P> for pretty_print::FormatWith<I, ethernet::frame>
}
}

#[cfg(feature = "std")]
impl<P: Payload, I> Send<P> for pretty_print::FormatWith<I, ethernet::frame>
where I: Send<P>
{
Expand Down
2 changes: 2 additions & 0 deletions ethox/src/nic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ impl<H: Handle + ?Sized, P: Payload + ?Sized> Recv<H, P> for Formatter<ethernet:
}
}

#[cfg(feature = "std")]
impl<I, H: Handle + ?Sized, P: Payload + ?Sized> Recv<H, P> for FormatWith<I, ethernet::frame>
where I: Recv<H, P>
{
Expand All @@ -223,6 +224,7 @@ impl<I, H: Handle + ?Sized, P: Payload + ?Sized> Recv<H, P> for FormatWith<I, et
}
}

#[cfg(feature = "std")]
impl<I, H: Handle + ?Sized, P: Payload + ?Sized> Send<H, P> for FormatWith<I, ethernet::frame>
where I: Send<H, P>
{
Expand Down

0 comments on commit b81ade5

Please sign in to comment.