Skip to content

Commit

Permalink
cargo: bump bitvec to 1.0
Browse files Browse the repository at this point in the history
bitvec 0.22 depends on a yanked funty release. This has been fixed as of bitvec 1.0, which instead depends on a non-yanked funty 2.0. With this commit we now also depend on a stable bitvec API.

See #16.
  • Loading branch information
jannic authored and tmplt committed Nov 18, 2022
1 parent 21d83b4 commit 01c2cbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion itm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ description = "A decoding library for the ARM Cortex-M ITM/DWT packet protocol"

[dependencies]
bitmatch = "0.1.1"
bitvec = "0.22"
bitvec = "1.0"
thiserror = "1"

[dependencies.serde]
Expand Down
2 changes: 1 addition & 1 deletion itm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ where
return Err(DecoderErrorInt::Eof);
}
Ok(n) => {
let mut bv = BitVec::<LocalBits, _>::from_vec(buffer[0..n].to_vec());
let mut bv = BitVec::<_, LocalBits>::from_vec(buffer[0..n].to_vec());
bv.reverse();
bv.append(&mut self.buffer);
self.buffer.append(&mut bv);
Expand Down

0 comments on commit 01c2cbb

Please sign in to comment.