mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 12:51:02 +00:00
Proposal: Defensive trait for infallible frame operations (#10626)
* add a blueprint of how defensive traits could look like * add something for arithmetic as well * add some use cases in different pallets * some build fixing * Some new stuff and examples * Fix deadly bug * add more doc. * undo faulty change to assets pallet * Update frame/support/src/traits/misc.rs Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * some review comments * remove draft comment * Fix ident test * Fix proxy tests as well * a few new ideas * Fix build * Fix doc Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
@@ -343,7 +343,7 @@ impl<AccountId, BlockNumber> ElectionProvider for NoElection<(AccountId, BlockNu
|
||||
/// used on the implementing side of [`ElectionDataProvider`].
|
||||
pub trait SortedListProvider<AccountId> {
|
||||
/// The list's error type.
|
||||
type Error;
|
||||
type Error: sp_std::fmt::Debug;
|
||||
|
||||
/// An iterator over the list, which can have `take` called on it.
|
||||
fn iter() -> Box<dyn Iterator<Item = AccountId>>;
|
||||
|
||||
Reference in New Issue
Block a user