Fix clippy lints

This commit is contained in:
Paul Hauner
2019-05-09 13:35:00 +10:00
parent 0ac278f44d
commit 2a938f2fd5
13 changed files with 20 additions and 23 deletions

View File

@@ -226,7 +226,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 {