aboutsummaryrefslogtreecommitdiff
path: root/src/decode.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/decode.rs')
-rw-r--r--src/decode.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decode.rs b/src/decode.rs
index 2202116..3738b2e 100644
--- a/src/decode.rs
+++ b/src/decode.rs
@@ -61,7 +61,7 @@ pub fn decode_image(obi_data: &mut Cursor<Vec<u8>>) -> OBIResult<Image> {
61 .map_err(|_| OBIError::Decode)?; 61 .map_err(|_| OBIError::Decode)?;
62 rest.iter() 62 rest.iter()
63 .map(|&b| { 63 .map(|&b| {
64 BitVec::<Lsb0, u8>::from_element(b) 64 BitVec::<u8>::from_element(b)
65 .into_iter() 65 .into_iter()
66 .map(|e| e as bool) 66 .map(|e| e as bool)
67 .collect::<Vec<bool>>() 67 .collect::<Vec<bool>>()
@@ -80,7 +80,7 @@ pub fn decode_image(obi_data: &mut Cursor<Vec<u8>>) -> OBIResult<Image> {
80 .map_err(|_| OBIError::Decode)?; 80 .map_err(|_| OBIError::Decode)?;
81 rest.iter() 81 rest.iter()
82 .map(|&b| { 82 .map(|&b| {
83 BitVec::<Lsb0, u8>::from_element(b) 83 BitVec::<u8>::from_element(b)
84 .into_iter() 84 .into_iter()
85 .map(|e| e as bool) 85 .map(|e| e as bool)
86 .collect::<Vec<bool>>() 86 .collect::<Vec<bool>>()