cargo fmt
This commit is contained in:
parent
62ca9037b6
commit
0b28b24900
7 changed files with 15 additions and 14 deletions
|
@ -1,5 +1,8 @@
|
|||
use crate::{BitVec, ByteGrid, CommandCode, CompressionCode, Header, Packet, PixelGrid, TILE_SIZE};
|
||||
use crate::compression::{into_compressed, into_decompressed};
|
||||
use crate::{
|
||||
BitVec, ByteGrid, CommandCode, CompressionCode, Header, Packet, PixelGrid,
|
||||
TILE_SIZE,
|
||||
};
|
||||
|
||||
/// An origin marks the top left position of a window sent to the display.
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
|
@ -266,10 +269,7 @@ fn origin_size_payload(
|
|||
}
|
||||
|
||||
fn command_code_only(code: CommandCode) -> Packet {
|
||||
Packet(
|
||||
Header(code.into(), 0x0000, 0x0000, 0x0000, 0x0000),
|
||||
vec![],
|
||||
)
|
||||
Packet(Header(code.into(), 0x0000, 0x0000, 0x0000, 0x0000), vec![])
|
||||
}
|
||||
|
||||
fn check_empty_header(header: Header) -> Option<TryFromPacketError> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue