Skip to content

Commit 01c2cbb

Browse files
jannictmplt
authored andcommitted
cargo: bump bitvec to 1.0
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.
1 parent 21d83b4 commit 01c2cbb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

itm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ description = "A decoding library for the ARM Cortex-M ITM/DWT packet protocol"
1414

1515
[dependencies]
1616
bitmatch = "0.1.1"
17-
bitvec = "0.22"
17+
bitvec = "1.0"
1818
thiserror = "1"
1919

2020
[dependencies.serde]

itm/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ where
435435
return Err(DecoderErrorInt::Eof);
436436
}
437437
Ok(n) => {
438-
let mut bv = BitVec::<LocalBits, _>::from_vec(buffer[0..n].to_vec());
438+
let mut bv = BitVec::<_, LocalBits>::from_vec(buffer[0..n].to_vec());
439439
bv.reverse();
440440
bv.append(&mut self.buffer);
441441
self.buffer.append(&mut bv);

0 commit comments

Comments
 (0)