remove unneeded as_ref call (#3349)

This commit is contained in:
Robert Habermeier
2019-08-08 23:05:03 +02:00
committed by GitHub
parent 17a851b433
commit a1a8c9829e
+1 -1
View File
@@ -172,7 +172,7 @@ impl<H: Hasher> NodeCodecT<H> for NodeCodec<H> {
None => false,
}), bitmap.as_mut());
output[bitmap_index..bitmap_index + BITMAP_LENGTH]
.copy_from_slice(&bitmap.as_ref()[..BITMAP_LENGTH]);
.copy_from_slice(&bitmap[..BITMAP_LENGTH]);
output
}