fixup! hide packets to reduce api surface for new users

This commit is contained in:
Vinzenz Schroeter 2024-10-11 21:37:28 +02:00
parent 46cb48c126
commit 21cc7e3f12
2 changed files with 7 additions and 4 deletions

View file

@ -492,9 +492,12 @@ impl Command {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use crate::{ use crate::{
bitvec::prelude::BitVec, command::TryFromPacketError, bitvec::prelude::BitVec,
command_code::CommandCode, origin::Pixels, Brightness, Command, command::TryFromPacketError,
CompressionCode, Header, Origin, Packet, PixelGrid, PrimitiveGrid, command_code::CommandCode,
origin::Pixels,
packet::{Header, Packet},
Brightness, Command, CompressionCode, Origin, PixelGrid, PrimitiveGrid,
}; };
fn round_trip(original: Command) { fn round_trip(original: Command) {

View file

@ -316,7 +316,7 @@ impl Packet {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use crate::{Header, Packet}; use super::*;
#[test] #[test]
fn round_trip() { fn round_trip() {