Minor improvements to `bounded_vec` and `defensive`. (#10873)
* Fix a few things in bounded_vec * add test for try_extend * Update frame/support/src/storage/bounded_vec.rs Co-authored-by:Bastian Köcher <bkchr@users.noreply.github.com> * some review comments * use swap * remove clone * use pop instead of truncate * remove warn * review comments * Update frame/support/src/storage/bounded_vec.rs Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> * fix rustdoc * fix links * undo link Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com>
Showing
- substrate/frame/referenda/src/lib.rs 1 addition, 1 deletionsubstrate/frame/referenda/src/lib.rs
- substrate/frame/referenda/src/types.rs 1 addition, 1 deletionsubstrate/frame/referenda/src/types.rs
- substrate/frame/support/src/storage/bounded_vec.rs 142 additions, 69 deletionssubstrate/frame/support/src/storage/bounded_vec.rs
- substrate/frame/support/src/traits.rs 2 additions, 0 deletionssubstrate/frame/support/src/traits.rs
- substrate/frame/support/src/traits/misc.rs 43 additions, 100 deletionssubstrate/frame/support/src/traits/misc.rs
Please register or sign in to comment