aboutsummaryrefslogtreecommitdiff
path: root/src/decode.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2024-08-02 16:02:46 +0100
committerAkshay <[email protected]>2024-08-02 16:02:46 +0100
commit1ee4d04b394dafebb82c72ebb57f3affe04c9584 (patch)
tree05e662268b87b0929841d1ce983c16d72d3d974e /src/decode.rs
parent7773bfb4c63ab3ea49b428e20ef0946b713fd5f5 (diff)
fixes for bitvec 1.0 releaseHEADmaster
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>>()