From 21cc7e3f121e55cb91c2d239d7e6ae9bf42fc90d Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Fri, 11 Oct 2024 21:37:28 +0200 Subject: [PATCH] fixup! hide packets to reduce api surface for new users --- crates/servicepoint/src/command.rs | 9 ++++++--- crates/servicepoint/src/packet.rs | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/crates/servicepoint/src/command.rs b/crates/servicepoint/src/command.rs index 537b017..6b821e9 100644 --- a/crates/servicepoint/src/command.rs +++ b/crates/servicepoint/src/command.rs @@ -492,9 +492,12 @@ impl Command { #[cfg(test)] mod tests { use crate::{ - bitvec::prelude::BitVec, command::TryFromPacketError, - command_code::CommandCode, origin::Pixels, Brightness, Command, - CompressionCode, Header, Origin, Packet, PixelGrid, PrimitiveGrid, + bitvec::prelude::BitVec, + command::TryFromPacketError, + command_code::CommandCode, + origin::Pixels, + packet::{Header, Packet}, + Brightness, Command, CompressionCode, Origin, PixelGrid, PrimitiveGrid, }; fn round_trip(original: Command) { diff --git a/crates/servicepoint/src/packet.rs b/crates/servicepoint/src/packet.rs index cf0fa82..a8f0831 100644 --- a/crates/servicepoint/src/packet.rs +++ b/crates/servicepoint/src/packet.rs @@ -316,7 +316,7 @@ impl Packet { #[cfg(test)] mod tests { - use crate::{Header, Packet}; + use super::*; #[test] fn round_trip() {