Skip to content

Commit

Permalink
Fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
marmal95 committed May 1, 2024
1 parent 9df8979 commit b4d8b91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/coder/decoder/header_decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::coder::{
pub fn decode(buffer: &Vec<u8>) -> Result<Header, HeaderDecodeError> {
let mut iter = buffer.iter().skip(3).step_by(4);
let mode = *iter.next().ok_or(HeaderDecodeError(
"Header decode error: Not enough data to decode mode.".to_string(),
"Not enough data to decode mode.".to_string(),
))?;

let alg_header = decode_alg_header(mode, &mut iter)?;
Expand Down Expand Up @@ -75,7 +75,7 @@ mod tests {
assert_eq!(
decoded,
Err(HeaderDecodeError(
"Header decode error: Not enough data to decode mode.".to_string()
"Not enough data to decode mode.".to_string()
))
);
}
Expand All @@ -87,7 +87,7 @@ mod tests {
assert_eq!(
decoded,
Err(HeaderDecodeError(
"Header decode error: Not enough data to decode bits per channel.".to_string()
"Not enough data to decode bits per channel.".to_string()
))
);
}
Expand Down

0 comments on commit b4d8b91

Please sign in to comment.