-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added generic DispatchLevelResult to the MessageDispatchResult #1670
Conversation
primitives/runtime/src/messages.rs
Outdated
@@ -22,7 +22,7 @@ use scale_info::TypeInfo; | |||
|
|||
/// Message dispatch result. | |||
#[derive(Encode, Decode, RuntimeDebug, Clone, PartialEq, Eq, TypeInfo)] | |||
pub struct MessageDispatchResult { | |||
pub struct MessageDispatchResult<DispatchLevelResult: Clone + Decode + sp_std::fmt::Debug + Eq> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also try NoBound
versions here? :) I've found them recently && iiuc it should help with removing these constraints (maybe I'm wrong though)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This reverts commit b96b41c.
* Anchor polkadot-v0.9.32 * fix parity-util-mem conflict * Anchor polkadot-v0.9.33 * Companion for paritytech/parity-bridges-common#1613 * Companion for paritytech/parity-bridges-common#1616 * Companion for paritytech/parity-bridges-common#1619 * Companion for paritytech/parity-bridges-common#1623 * Companion for paritytech/parity-bridges-common#1622 * Companion for paritytech/parity-bridges-common#1655 * Companion for paritytech/parity-bridges-common#1670 * Companion for paritytech/parity-bridges-common#1690 * Correct cargo * Revert "Companion for paritytech/parity-bridges-common#1690" This reverts commit 926b32d. * Revert "Companion for paritytech/parity-bridges-common#1670" This reverts commit b96b41c. * Fix compile * Revert "Companion for paritytech/parity-bridges-common#1622" This reverts commit 4c5865d. * Fix compile * format * Fix test * Fix dispatch test * Try fix compile with darwinia-2.0 * Revert "Try fix compile with darwinia-2.0" This reverts commit c9dcd67. * Update prepare branch * Format * Remove unused trait * Remove unused import
* Anchor polkadot-v0.9.32 * fix parity-util-mem conflict * Anchor polkadot-v0.9.33 * Companion for paritytech/parity-bridges-common#1613 * Companion for paritytech/parity-bridges-common#1616 * Companion for paritytech/parity-bridges-common#1619 * Companion for paritytech/parity-bridges-common#1623 * Companion for paritytech/parity-bridges-common#1622 * Companion for paritytech/parity-bridges-common#1655 * Companion for paritytech/parity-bridges-common#1670 * Companion for paritytech/parity-bridges-common#1690 * Correct cargo * Revert "Companion for paritytech/parity-bridges-common#1690" This reverts commit 926b32d. * Revert "Companion for paritytech/parity-bridges-common#1670" This reverts commit b96b41c. * Fix compile * Revert "Companion for paritytech/parity-bridges-common#1622" This reverts commit 4c5865d. * Fix compile * format * Fix test * Fix dispatch test * Try fix compile with darwinia-2.0 * Revert "Try fix compile with darwinia-2.0" This reverts commit c9dcd67. * Update prepare branch * Format * Remove unused trait * Remove unused import
…238) * Anchor polkadot-v0.9.32 * fix parity-util-mem conflict * Anchor polkadot-v0.9.33 * Companion for paritytech/parity-bridges-common#1613 * Companion for paritytech/parity-bridges-common#1616 * Companion for paritytech/parity-bridges-common#1619 * Companion for paritytech/parity-bridges-common#1623 * Companion for paritytech/parity-bridges-common#1622 * Companion for paritytech/parity-bridges-common#1655 * Companion for paritytech/parity-bridges-common#1670 * Companion for paritytech/parity-bridges-common#1690 * Correct cargo * Revert "Companion for paritytech/parity-bridges-common#1690" This reverts commit 926b32d. * Revert "Companion for paritytech/parity-bridges-common#1670" This reverts commit b96b41c. * Fix compile * Revert "Companion for paritytech/parity-bridges-common#1622" This reverts commit 4c5865d. * Fix compile * format * Fix test * Fix dispatch test * Try fix compile with darwinia-2.0 * Revert "Try fix compile with darwinia-2.0" This reverts commit c9dcd67. * Update prepare branch * Format * Remove unused trait * Remove unused import
…ytech#1670) * Added generic DispatchLevelResult to the MessageDispatchResult * Removed unnecessery `Clone + Decode + sp_std::fmt::Debug + Eq` + clippy
…ytech#1670) * Added generic DispatchLevelResult to the MessageDispatchResult * Removed unnecessery `Clone + Decode + sp_std::fmt::Debug + Eq` + clippy
No description provided.