Upgrade deps

This commit is contained in:
Igor Katson 2022-12-04 13:11:40 +00:00
parent 15ae48e5af
commit ae847ce99c
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
12 changed files with 493 additions and 2173 deletions

View file

@ -44,7 +44,7 @@ fn compute_chunk_status(lengths: &Lengths, needed_pieces: &BF) -> BF {
chunk_bf
.get_mut(offset..offset + chunks_per_piece)
.unwrap()
.set_all(true);
.fill(true);
}
chunk_bf
}
@ -120,7 +120,7 @@ impl ChunkTracker {
self.chunk_status
.get_mut(self.lengths.chunk_range(index))
.map(|s| {
s.set_all(false);
s.fill(false);
true
})
.unwrap_or_default()

View file

@ -1,5 +1,5 @@
use std::net::SocketAddr;
pub type BF = bitvec::vec::BitVec<bitvec::order::Msb0, u8>;
pub type BF = bitvec::vec::BitVec<u8, bitvec::order::Msb0>;
pub type PeerHandle = SocketAddr;