add taskfile and cleanup project
This commit is contained in:
+1
-1
@@ -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};
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user