1
0
Fork 0
mirror of https://codeberg.org/icewind/bitbuffer.git synced 2026-06-03 16:44:06 +02:00

setup github actions ci

This commit is contained in:
Robin Appelman 2020-02-13 00:04:45 +01:00
commit 9ddbc51fd7
4 changed files with 65 additions and 4 deletions

View file

@ -539,6 +539,7 @@ impl<E: Endianness, T: BitRead<E>> BitReadSized<E> for Vec<T> {
//}
/// Read `K` and `T` `size` times and return as `HashMap<K, T>`
#[allow(clippy::implicit_hasher)]
impl<E: Endianness, K: BitRead<E> + Eq + Hash, T: BitRead<E>> BitReadSized<E> for HashMap<K, T> {
fn read(stream: &mut BitReadStream<E>, size: usize) -> Result<Self> {
let mut map = HashMap::with_capacity(min(size, 128));