Fixed CCSDS parsing
+ Using bitvec now for parsing binary data + Fixed issues with how some data was handled across byte boundaries + Updated CCSDS def + Added test to verify good ccsds parsing + clippy + fmt
This commit is contained in:
9 files changed
+289
-74
No files matched your search
+1
-2
@@ -5,11 +5,11 @@ use std::error::Error;
|
||||
use std::fmt::{Display, Formatter};
|
||||
|
||||
#[derive(Debug)]
|
||||
#[allow(clippy::enum_variant_names)]
|
||||
pub enum FormatyError {
|
||||
ByteArrayParseError(ByteArrayParseErr),
|
||||
FormatError(FormatError),
|
||||
FormatConfigError(FormatConfigError),
|
||||
FormatNotFound(String),
|
||||
}
|
||||
|
||||
impl From<ByteArrayParseErr> for FormatyError {
|
||||
@@ -36,7 +36,6 @@ impl Display for FormatyError {
|
||||
FormatyError::ByteArrayParseError(e) => e.to_string(),
|
||||
FormatyError::FormatError(e) => e.to_string(),
|
||||
FormatyError::FormatConfigError(e) => e.to_string(),
|
||||
FormatyError::FormatNotFound(err_msg) => format!("'{}' config not found.", err_msg),
|
||||
};
|
||||
|
||||
write!(f, "{}", err_msg)
|
||||
|
||||
Reference in new issue
Block a user