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

@ -182,8 +182,8 @@ pub enum Message<ByteBuf: std::hash::Hash + Eq> {
pub type MessageBorrowed<'a> = Message<ByteBuf<'a>>;
pub type MessageOwned = Message<ByteString>;
pub type BitfieldBorrowed<'a> = &'a bitvec::slice::BitSlice<bitvec::order::Lsb0, u8>;
pub type BitfieldOwned = bitvec::vec::BitVec<bitvec::order::Lsb0, u8>;
pub type BitfieldBorrowed<'a> = &'a bitvec::slice::BitSlice<u8, bitvec::order::Lsb0>;
pub type BitfieldOwned = bitvec::vec::BitVec<u8, bitvec::order::Lsb0>;
pub struct Bitfield<'a> {
pub data: BitfieldBorrowed<'a>,
@ -219,7 +219,7 @@ where
impl<'a> Bitfield<'a> {
pub fn new_from_slice(buf: &'a [u8]) -> anyhow::Result<Self> {
Ok(Self {
data: bitvec::slice::BitSlice::from_slice(buf)?,
data: bitvec::slice::BitSlice::from_slice(buf),
})
}
}