Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion bounded-collections/src/bounded_btree_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,9 @@ where
macro_rules! codec_impl {
($codec:ident) => {
use super::*;
use $codec::{Compact, Decode, DecodeLength, Encode, EncodeLike, Error, Input, MaxEncodedLen};
use $codec::{
Compact, Decode, DecodeLength, DecodeWithMemTracking, Encode, EncodeLike, Error, Input, MaxEncodedLen,
};
impl<T, S> Decode for BoundedBTreeSet<T, S>
where
T: Decode + Ord,
Expand Down Expand Up @@ -405,6 +407,13 @@ macro_rules! codec_impl {
}

impl<T, S> EncodeLike<BTreeSet<T>> for BoundedBTreeSet<T, S> where BTreeSet<T>: Encode {}

impl<T, S> DecodeWithMemTracking for BoundedBTreeSet<T, S>
where
T: Decode + Ord,
S: Get<u32>,
{
}
};
}

Expand Down
Loading