formatting changes, mostly resulting from the shorter name
This commit is contained in:
parent
78a4d4dbcf
commit
a08d439366
9 changed files with 75 additions and 70 deletions
|
@ -1,7 +1,7 @@
|
|||
//! Example for how to use the WebSocket connection
|
||||
|
||||
use servicepoint::{
|
||||
Command, CompressionCode, Connection, Grid, Origin, Bitmap,
|
||||
Bitmap, Command, CompressionCode, Connection, Grid, Origin,
|
||||
};
|
||||
|
||||
fn main() {
|
||||
|
|
|
@ -197,7 +197,7 @@ impl<'t> Iterator for IterRows<'t> {
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::{DataRef, Grid, Bitmap};
|
||||
use crate::{Bitmap, DataRef, Grid};
|
||||
|
||||
#[test]
|
||||
fn fill() {
|
||||
|
|
|
@ -4,7 +4,7 @@ use crate::{
|
|||
command_code::CommandCode,
|
||||
compression::into_decompressed,
|
||||
packet::{Header, Packet},
|
||||
Brightness, BrightnessGrid, CompressionCode, Cp437Grid, Origin, Bitmap,
|
||||
Bitmap, Brightness, BrightnessGrid, CompressionCode, Cp437Grid, Origin,
|
||||
Pixels, PrimitiveGrid, SpBitVec, Tiles, TILE_SIZE,
|
||||
};
|
||||
|
||||
|
@ -495,8 +495,8 @@ mod tests {
|
|||
command_code::CommandCode,
|
||||
origin::Pixels,
|
||||
packet::{Header, Packet},
|
||||
Brightness, BrightnessGrid, Command, CompressionCode, Origin,
|
||||
Bitmap, PrimitiveGrid,
|
||||
Bitmap, Brightness, BrightnessGrid, Command, CompressionCode, Origin,
|
||||
PrimitiveGrid,
|
||||
};
|
||||
|
||||
fn round_trip(original: Command) {
|
||||
|
@ -903,6 +903,7 @@ mod tests {
|
|||
Origin::new(1, 0) + Origin::new(3, 2)
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn packet_into_char_brightness_invalid() {
|
||||
let grid = BrightnessGrid::new(2, 2);
|
||||
|
|
|
@ -40,6 +40,7 @@ use std::time::Duration;
|
|||
pub use bitvec;
|
||||
use bitvec::prelude::{BitVec, Msb0};
|
||||
|
||||
pub use crate::bitmap::Bitmap;
|
||||
pub use crate::brightness::{Brightness, BrightnessGrid};
|
||||
pub use crate::command::{Command, Offset};
|
||||
pub use crate::compression_code::CompressionCode;
|
||||
|
@ -48,11 +49,11 @@ pub use crate::cp437::{CharGrid, Cp437Grid};
|
|||
pub use crate::data_ref::DataRef;
|
||||
pub use crate::grid::Grid;
|
||||
pub use crate::origin::{Origin, Pixels, Tiles};
|
||||
pub use crate::bitmap::Bitmap;
|
||||
pub use crate::primitive_grid::PrimitiveGrid;
|
||||
|
||||
type SpBitVec = BitVec<u8, Msb0>;
|
||||
|
||||
mod bitmap;
|
||||
mod brightness;
|
||||
mod command;
|
||||
mod command_code;
|
||||
|
@ -64,7 +65,6 @@ mod data_ref;
|
|||
mod grid;
|
||||
mod origin;
|
||||
pub mod packet;
|
||||
mod bitmap;
|
||||
mod primitive_grid;
|
||||
|
||||
/// size of a single tile in one dimension
|
||||
|
|
|
@ -27,8 +27,8 @@ use std::mem::size_of;
|
|||
|
||||
use crate::compression::into_compressed;
|
||||
use crate::{
|
||||
command_code::CommandCode, Command, CompressionCode, Grid, Offset, Origin,
|
||||
Bitmap, Pixels, Tiles, TILE_SIZE,
|
||||
command_code::CommandCode, Bitmap, Command, CompressionCode, Grid, Offset,
|
||||
Origin, Pixels, Tiles, TILE_SIZE,
|
||||
};
|
||||
|
||||
/// A raw header.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue