Relax `BoundedVec` trait restrictions (#8749)
* requiring users to maintain an unchecked invariant is unsafe * relax trait restrictions on BoundedVec<T, S> A normal `Vec<T>` can do many things without any particular trait bounds on `T`. This commit relaxes the bounds on `BoundedVec<T, S>` to give it similar capabilities.
Showing
- substrate/frame/support/src/lib.rs 1 addition, 1 deletionsubstrate/frame/support/src/lib.rs
- substrate/frame/support/src/storage/bounded_vec.rs 138 additions, 94 deletionssubstrate/frame/support/src/storage/bounded_vec.rs
- substrate/frame/support/src/storage/mod.rs 3 additions, 6 deletionssubstrate/frame/support/src/storage/mod.rs
- substrate/frame/support/src/storage/types/double_map.rs 3 additions, 3 deletionssubstrate/frame/support/src/storage/types/double_map.rs
- substrate/frame/support/src/storage/types/map.rs 2 additions, 2 deletionssubstrate/frame/support/src/storage/types/map.rs
- substrate/frame/support/src/storage/types/value.rs 2 additions, 2 deletionssubstrate/frame/support/src/storage/types/value.rs
Please register or sign in to comment