mirror of
https://github.com/cccb/servicepoint.git
synced 2025-01-18 18:10:14 +01:00
fixup! hide packets to reduce api surface for new users
This commit is contained in:
parent
46cb48c126
commit
21cc7e3f12
|
@ -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) {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue