diff options
Diffstat (limited to 'src/encode.rs')
-rw-r--r-- | src/encode.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encode.rs b/src/encode.rs index e52b69b..58c455e 100644 --- a/src/encode.rs +++ b/src/encode.rs | |||
@@ -45,7 +45,7 @@ where | |||
45 | 45 | ||
46 | let write_pixel_data = |pixels: &Vec<bool>, obi_data: &mut Vec<u8>| -> OBIResult<()> { | 46 | let write_pixel_data = |pixels: &Vec<bool>, obi_data: &mut Vec<u8>| -> OBIResult<()> { |
47 | for byte in pixels.chunks(8) { | 47 | for byte in pixels.chunks(8) { |
48 | let mut bv = BitVec::<Lsb0, u8>::new(); | 48 | let mut bv = BitVec::<u8>::new(); |
49 | for &b in byte { | 49 | for &b in byte { |
50 | bv.push(b) | 50 | bv.push(b) |
51 | } | 51 | } |