Skip to content

Commit d167a12

Browse files
committed
WIP
1 parent 8f6a786 commit d167a12

20 files changed

Lines changed: 768 additions & 424 deletions

Cargo.lock

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ bitflags = "2.9.1"
1010
color_space = "0.5.4"
1111
crc = "3.3.0"
1212
hidapi = "2.6.3"
13-
smallvec = "1.15.1"
1413
thiserror = "2.0.14"
1514

1615
[lints.rust]
@@ -30,6 +29,7 @@ default_trait_access = "allow"
3029
explicit_iter_loop = "allow"
3130
match_same_arms = "allow"
3231
match_wildcard_for_single_variants = "allow"
32+
missing_errors_doc = "allow"
3333
missing_panics_doc = "allow"
3434
module_name_repetitions = "allow"
3535
no_effect_underscore_binding = "allow"

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
#![allow(missing_docs)] // TODO
2+
13
pub mod misc;
24
pub mod protocol;

src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(missing_docs)]
2+
13
use std::io::stdin;
24
use std::mem::take;
35
use std::num::ParseIntError;

src/misc/binary_io.rs

Lines changed: 0 additions & 279 deletions
This file was deleted.

src/misc/crc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::io::{Result as IoResult, Write};
33

44
use crc::{Crc, Digest, Table, CRC_16_USB};
55

6-
use crate::misc::{BinaryIoError, Reader};
6+
use crate::misc::{IoError, Reader};
77

88
pub struct CrcWriter<W> {
99
writer: W,
@@ -89,7 +89,7 @@ where
8989
{
9090
type Guard = R::Guard;
9191

92-
fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), BinaryIoError> {
92+
fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), IoError> {
9393
self.reader.read_exact(buf)?;
9494
self.digest.update(buf);
9595

0 commit comments

Comments
 (0)