Merge branch 'fixed-vec' into sos

This commit is contained in:
Paul Hauner
2019-05-10 15:27:21 +10:00
164 changed files with 1498 additions and 4513 deletions

View File

@@ -220,7 +220,7 @@ impl Decodable for BooleanBitfield {
// as the BitVec library and the hex-parser use opposing bit orders.
fn reverse_bit_order(mut bytes: Vec<u8>) -> Vec<u8> {
bytes.reverse();
bytes.into_iter().map(|b| b.swap_bits()).collect()
bytes.into_iter().map(LookupReverse::swap_bits).collect()
}
impl Serialize for BooleanBitfield {