add taskfile and cleanup project

This commit is contained in:
2026-03-15 18:46:13 -06:00
parent 3ef95614f0
commit 05e773d62c
5 changed files with 49 additions and 39 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
use crate::formatter::format::FormatError;
use crate::formatter::FormatConfigError;
use crate::formatter::format::FormatError;
use crate::parser::ByteArrayParseErr;
use std::error::Error;
use std::fmt::{Display, Formatter};
+7 -5
View File
@@ -2,7 +2,7 @@ use std::fmt::Write;
use std::io::Cursor;
use std::string::FromUtf8Error;
use crate::byte_stream::{bit_mask, ByteStream, ByteStreamError};
use crate::byte_stream::{ByteStream, ByteStreamError, bit_mask};
use crate::formatter::bytes_operations::ByteOrderOperations;
use crate::formatter::format_config::FormatConfig;
use crate::formatter::printers::PrintType;
@@ -351,10 +351,10 @@ impl Format {
#[cfg(test)]
mod tests {
use crate::Format;
use crate::byte_stream::ByteStream;
use crate::formatter::format::{Endianness, Field, FieldType};
use crate::formatter::format_config::FormatConfig;
use crate::Format;
#[test]
fn test_format_int_4_bits() {
@@ -504,9 +504,11 @@ mod tests {
let mut byte_stream = ByteStream::from(b"\x3D\x70\xA3\xD7".to_vec());
assert!(field
.format_data(&mut byte_stream, 0, &FormatConfig::default())
.is_err())
assert!(
field
.format_data(&mut byte_stream, 0, &FormatConfig::default())
.is_err()
)
}
#[test]
+2 -2
View File
@@ -1,10 +1,10 @@
use crate::deframer::Deframer;
use crate::formatter::format::{Format, FormatError};
use crate::formatter::FormatConfigError;
use crate::formatter::format::{Format, FormatError};
use platform_dirs::AppDirs;
use rust_embed::RustEmbed;
use serde::Deserialize;
use std::fs::{read_dir, File};
use std::fs::{File, read_dir};
use std::io::Read;
use std::path::PathBuf;
use std::{fs, str};