Derive From for AllMessages and simplify send_msg (#1774)

This commit is contained in:
Bastian Köcher authored and GitHub committed 2020-10-01 16:22:15 +00:00
1 parent 579614d127
commit 5d8ae8d024
4 files changed
+41 -41

No files matched your search

+1 -1
View File
@@ -519,7 +519,7 @@ impl CollationGenerationMessage {
}
/// A message type tying together all message types that are used across Subsystems.
#[derive(Debug)]
#[derive(Debug, derive_more::From)]
pub enum AllMessages {
/// Message for the validation subsystem.
CandidateValidation(CandidateValidationMessage),